Anubis. Test. SyncHelpers
(anubis_mcp v1.6.1)
Copy Markdown
Synchronization helpers that replace fixed Process.sleep/1 waits in tests.
Each helper polls synchronously with a tight interval until a predicate is satisfied or a deadline expires, so the test resumes within ~5ms of the state actually settling instead of paying a fixed 100–300ms upper bound.
Summary
Functions
Polls :sys.get_state/1 on server until predicate.(state) is truthy or
timeout ms elapses. Returns the matching state or raises on timeout.
Functions
Polls :sys.get_state/1 on server until predicate.(state) is truthy or
timeout ms elapses. Returns the matching state or raises on timeout.