TestKitBaseAwaitAssert Method |
Await until the given assertion does not throw an exception or the timeout expires, whichever comes first. If the timeout expires the last exception is thrown.
The action is called, and if it throws an exception the thread sleeps the specified interval before retrying.
If no timeout is given, take it from the innermost enclosing `within` block.
Note that the timeout is scaled using Dilated(TimeSpan), which uses the configuration entry "akka.test.timefactor".
Namespace: Akka.TestKit
public void AwaitAssert( Action assertion, Nullable<TimeSpan> duration = null, Nullable<TimeSpan> interval = null )