-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't workingtestIssues related to testing.Issues related to testing.
Description
Description
A flaky test was detected in the CI pipeline for PR #207.
Test Details
Test Name: WebSocket Tests Given a web socket connection with a ping interval, when the client side blocks, then the server socket closes
Location: test/web_socket/web_socket_test.dart:354
Platform: macOS-latest (Dart stable, upgrade)
Failure Details
The test failed on the first run attempt but passed on retry.
Expected behavior:
• emit an event that <Instance of 'TextDataReceived'>
• emit an event that CloseReceived:<CloseReceived(1001, )>
• be done
Actual behavior:
emitted • CloseReceived(1001, )
x Stream closed.
which didn't emit an event that <Instance of 'TextDataReceived'>
Error:
TimeoutException after 0:00:30.000000: Test timed out after 30 seconds.
Links
- PR: fix: Build platform correct path when serving files. #207
- Failed workflow run: https://github.com/serverpod/relic/actions/runs/18400513696
- Failed job: https://github.com/serverpod/relic/actions/runs/18400513696/job/52428473683
Observations
This appears to be a race condition or timing issue specific to macOS runners. The test expects to receive a TextDataReceived event before the CloseReceived event, but on macOS the close event is sometimes received first.
The test succeeded on retry, confirming its flaky nature.
Suggested Actions
- Investigate the timing assumptions in the websocket ping interval test
- Consider adding more lenient timing expectations for macOS platform
- Review if the test's expectations about event ordering are too strict
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtestIssues related to testing.Issues related to testing.
Type
Projects
Status
Backlog 🗂️