-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more flaky periodic job enqueuer
*AfterStart
tests (#422)
This one continues #416. I fixed a pair of the `*AfterStart` tests, but didn't look further to see that there were three more, and I guess by a stroke of luck I was running GitHub Actions at the right time and didn't encounter anymore failures (today I immediately started seeing them again when pushing). Rationale there is similar to #416: * 500 ms is a short enough period that it seems to be possible in GitHub Actions for that amount of time to have elapsed by the time we check for the first set of jobs (amazing, I know, but I can't explain it any other way). * The way the tests are written, they're also very slow because each requires waiting for one of the 500 ms periods to elapse, so the minimum run time of each is 500 ms. Technically, with the rewrites it can be argued that the test cases are checking slightly less, but IMO it's good enough, and I was having trouble thinking of alternative ways to add additional checks without raciness. Fixes #386.
- Loading branch information
Showing
1 changed file
with
19 additions
and
31 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