forked from apache/pulsar
-
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.
Fix flake in DiscoveryServiceTest (apache#1081) (apache#2406)
This test was flaking because it was only waiting for 1 second for connection and message exchange to complete, which is not enough time when there's heavy load on the machine (simulated with stress-ng). The fix is to increase the timeout to 10 seconds. I've also cleaned up the test to use a CompletableFuture rather than a CountDownLatch so tha the test thread can be notified of failures in the handlers.
- Loading branch information
Showing
1 changed file
with
43 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