Click or drag to resize
Akka.NETTestKitBaseAwaitAssert 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
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public void AwaitAssert(
	Action assertion,
	Nullable<TimeSpan> duration = null,
	Nullable<TimeSpan> interval = null
)

Parameters

assertion
Type: SystemAction
The action.
duration (Optional)
Type: SystemNullableTimeSpan
The timeout.
interval (Optional)
Type: SystemNullableTimeSpan
The interval to wait between executing the assertion.
See Also