Skip to content

Commit

Permalink
De-flake TestNRGSimple
Browse files Browse the repository at this point in the history
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
  • Loading branch information
MauriceVanVeen authored and neilalexander committed Dec 16, 2024
1 parent 90ca361 commit 34bb983
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func TestNRGSimple(t *testing.T) {
rg := c.createRaftGroup("TEST", 3, newStateAdder)
rg.waitOnLeader()
// Do several state transitions.
rg.randomMember().(*stateAdder).proposeDelta(11)
rg.randomMember().(*stateAdder).proposeDelta(11)
rg.randomMember().(*stateAdder).proposeDelta(-22)
rg.randomMember().(*stateAdder).proposeDelta(22)
rg.randomMember().(*stateAdder).proposeDelta(-11)
rg.randomMember().(*stateAdder).proposeDelta(-10)
// Wait for all members to have the correct state.
rg.waitOnTotal(t, 0)
rg.waitOnTotal(t, 1)
}

func TestNRGSnapshotAndRestart(t *testing.T) {
Expand Down

0 comments on commit 34bb983

Please sign in to comment.