You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VisualizerCommandTests: await the dispatched event instead of a fixed sleep
These tests fired a resource action, waited a fixed `time.sleep(0.1)`, then asserted
`send_command` was called. The sleep blocks the event loop and, under CI load, can
elapse before the event is dispatched, so the test flakes. `set_well_volumes` also
fans out into one `set_state` per well, so the last captured call must be the one
carrying the well the assert reads. Poll the most recent call for the expected event
(and payload key) via `await asyncio.sleep`, bounded by a generous timeout.
0 commit comments