This trait adds the possibility to retry a given matcher until it succeeds.
This was contributed by @robey (http://robey.lag.net)
- Companion
- object
trait EventuallyResults
class Object
trait Matchable
class Any
object EventuallyMatchers
trait Matchers
object Matchers
trait MustMatchers
object MustMatchers
trait MustThrownMatchers
object MustThrownMatchers
trait ShouldMatchers
object ShouldMatchers
trait ShouldThrownMatchers
object ShouldThrownMatchers
Value members
Concrete methods
- Value Params
- sleep
the function applied on the retry number (first is 1)
- Returns
a matcher that will retry the nested matcher a given number of times
Inherited methods
- Returns
a matcher that will retry the nested matcher a given number of times
- Inherited from
- EventuallyResults
def eventually[T](retries: Int, sleep: Int => Duration)(result: => T)(using evidence$1: AsResult[T]): T
- Value Params
- sleep
the function applied on the retry number (first is 1)
- Returns
a matcher that will retry the nested matcher a given number of times
eventually(retries = 2, sleep = _ * 100.milliseconds) { aResult }
- Inherited from
- EventuallyResults