Files
OpenHands/frontend/public
openhands d0d8224daa Fix flaky websocket test - add proper waitFor for onMessage spy
The test 'should call onMessage handler when WebSocket receives a message'
was failing intermittently in CI due to a race condition. The broadcast would
sometimes happen before the first onMessageSpy check completed, causing the
test to expect 'Hello from server!' but receive 'Welcome to the WebSocket!'.

This fix ensures the onMessageSpy has been called once before broadcasting
the second message, and wraps the final assertion in waitFor as well.

Co-authored-by: openhands <openhands@all-hands.dev>
2025-12-08 16:44:35 +00:00
..
2024-06-27 01:27:48 +00:00
2025-11-18 07:30:46 -05:00
2024-03-15 20:22:29 -04:00