Expand description
Helpers for waiting on conditions of test nodes.
Structs§
- Poll
Opts - Timeout and interval of a single
poll_until_withcall.
Constants§
- POLL_
INTERVAL - Interval at which
poll_untilpolls,assert_holds_forchecks andNodeTestContext::advance_whileadvances the chain. - WAIT_
TIMEOUT - Maximum time the wait helpers wait for a condition, e.g. for a node to sync to or commit a block.
Functions§
- assert_
holds_ for - Asserts that the condition checked by
checkholds forduration. - poll_
until - Calls
polleveryPOLL_INTERVALuntil it returns a value. - poll_
until_ with - Calls
polluntil it returns a value, with the timeout and interval ofopts.