diff --git a/pkg/storage/client_raft_test.go b/pkg/storage/client_raft_test.go index e3de29bd62a6..75513ed256d0 100644 --- a/pkg/storage/client_raft_test.go +++ b/pkg/storage/client_raft_test.go @@ -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)