Skip to content

bin: Fix race conditions in tests

The latency messages are non-deterministic and can arrive before/after async-done or during state-changes as they are posted by e.g. sinks from their streaming thread but bins are finishing asynchronous state changes from a secondary helper thread.

To solve this, expect latency messages at any time and assert that we receive one at some point during the test.

Merge request reports