forked from Netflix/ribbon
-
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 ServerStatusChangeListenerTest race condition.
The changeServerStatusByPingShouldBeReceivedByListener() test was inconsistent due to the BaseLoadBalancer triggering a ping task in the constructor. That ping task interferes with testing listeners in two ways: 1. it may cause a forced ping to get dropped because the task may actively be pinging at the moment. 2. even if our forced ping is active, nothing guarantees that the ping task will not alter the state of the listener before we assert() our invariants.
- Loading branch information
Nikos Michalakis
committed
Jan 21, 2016
1 parent
46cf385
commit 2e93352
Showing
2 changed files
with
27 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
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