Skip to content

Commit

Permalink
Merge pull request #16399 from irfansharif/TestRaftRemoveRace-flakiness
Browse files Browse the repository at this point in the history
storage: deflake TestRaftRemoveRace
  • Loading branch information
irfansharif authored Jun 8, 2017
2 parents 9ca34ef + eace0dd commit 5bef6b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/storage/client_raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,11 @@ func TestRaftAfterRemoveRange(t *testing.T) {
// reproduce a race (see #1911 and #9037).
func TestRaftRemoveRace(t *testing.T) {
defer leaktest.AfterTest(t)()
mtc := &multiTestContext{}
sc := storage.TestStoreConfig(nil)
// Suppress timeout-based elections to avoid leadership changes in ways
// this test doesn't expect.
sc.RaftElectionTimeoutTicks = 100000
mtc := &multiTestContext{storeConfig: &sc}
defer mtc.Stop()
mtc.Start(t, 10)

Expand Down

0 comments on commit 5bef6b6

Please sign in to comment.