-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): review fixes for gateway max message size assertion
* Removed unnecessary if check * Updated tests to make sure all jobs are created. Otherwise, they might end up with being flaky tests. Because in the old implementation, when we limit the stream to 5 records, it only throws an exception when the stream has no entries after 5 seconds. It would wait 5 seconds and then continue if there is only a single job record. Which can cause flakiness. fix(gateway): review fixes for gateway max message size assertion * Removed blocking join() calls * Removed unused variables * Added limit to job created assertion to speed up the test execution test: assert jobs created before worker opened This helps avoid multiple job activation roundtrips, because the worker is only opened once all jobs are created. Otherwise, there's a chance that the worker only receives some of the jobs and has has to poll for more jobs until the final assertion is met. (cherry picked from commit d5e3deb)
- Loading branch information
1 parent
9359e0e
commit 971b017
Showing
2 changed files
with
32 additions
and
34 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
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