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.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
trait MustThrownMatchers
object MustThrownMatchers.type
trait ShouldMatchers
object ShouldMatchers.type
trait ShouldThrownMatchers
object ShouldThrownMatchers.type
Value members
Concrete methods
- Value parameters:
- 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 parameters:
- 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