-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the flakiness in LogReplicationFSMTest.testSnapshotSender. (#3638)
testSnapshotSender relies on observing the state transition to a non-terminal state(InSnapshotSync). It relies on an Observable to deliver this update and then directly validates the FSM state. But the FSM could have transitioned to the next state, i.e., WaitForSnapshotApply or InLogEntrySync by the time the Observable invokes the update() callback. Change the test to rely on the terminal state, i.e., InLogEntrySyncState to make it reliable. Also removed the dependence on the semaphore for this test as it is much simpler to wait for the expected state directly.
- Loading branch information
Showing
1 changed file
with
23 additions
and
16 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