Commit 81a25db
Make test
Summary: The SingleMockThreadScheduler has a background thread that runs jobs. So it's possible for our assertion on number of jobs done to be racy and fail the test. The changes now will explicitly wait until all jobs have completed in the scheduler before checking, which eliminates the race.
Reviewed By: haowu14
Differential Revision: D47580097
fbshipit-source-id: adc3474d384e9fc3755371c584d3f665305a279eInsertRetryRemoveOther less flaky1 parent 86ae8aa commit 81a25db
File tree
1 file changed
+6
-0
lines changed1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
475 | 481 | | |
476 | 482 | | |
477 | 483 | | |
| |||
0 commit comments