Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The test is flaky because on subscription, it is done on main thread but asynchronously. Thus, if we don't drain the main queue, we could miss the first update (while always get the final deleted update). This will cause our fulfill logic fail. This PR does the wait for main queue to drain. Now, running `bazel test src/tests:Tests --runs_per_test=5000` will pass without any failures (about half-an-hour to run on Mac Mini 2020).
- Loading branch information