failCount

Sets a deterministic failure count: the first count calls will throw, then succeed. Takes precedence over failureRate when > 0. Preferred over failureRate for tests.

Parameters

count

Number of calls that will throw before succeeding. Must be >= 0.