retrofit-mock / retrofit2.mock / NetworkBehavior / setErrorPercent

setErrorPercent

fun setErrorPercent(errorPercent: Int): Unit

Set the percentage of calls to #calculateIsError() that return true.