-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/realtime/message: reduce subscribes to filtered channel flakes
The test waits to receive an end message on a channel then it runs the assertions, this can cause flakes because we dont know if the event loop had any other pending IO which could include delivering the 2 expected filtered messages. Run the assertions in a setImmediate so that it executes in the next event loop run allowing any queued messages to be delivered. When running the test with logging the messages were being delivered but the handler was being called after the assertions had ran. RAR-656
- Loading branch information
Showing
1 changed file
with
35 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters