forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct race condition in watch test
It was possible for the randomized watch tests to `Stop` the watch handles before they had the chance to deliver all of the enqueued notifications, resulting in 1 fewer being delivered than should have been. The test now properly waits for all notifications to come through before ending the watches.
- Loading branch information
1 parent
f16d0b9
commit e5ea246
Showing
1 changed file
with
22 additions
and
10 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