Skip to content

Commit

Permalink
Merge pull request etcd-io#14273 from RobertIndie/fix-test
Browse files Browse the repository at this point in the history
tests: fix the logic of testNonleaderElectionTimeoutRandomized in raft_paper_test.go
  • Loading branch information
serathius authored Jul 26, 2022
2 parents 4977877 + b77f56a commit 5fab045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft/raft_paper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func testNonleaderElectionTimeoutRandomized(t *testing.T, state StateType) {
timeouts[time] = true
}

for d := et + 1; d < 2*et; d++ {
for d := et; d < 2*et; d++ {
if !timeouts[d] {
t.Errorf("timeout in %d ticks should happen", d)
}
Expand Down

0 comments on commit 5fab045

Please sign in to comment.