diff --git a/raft_test.go b/raft_test.go index 32963423c..286217ffb 100644 --- a/raft_test.go +++ b/raft_test.go @@ -916,7 +916,7 @@ func TestRaft_ApplyConcurrent_Timeout(t *testing.T) { leader := c.Leader() // Enough enqueues should cause at least one timeout... - var didTimeout int32 = 0 + var didTimeout int32 for i := 0; (i < 5000) && (atomic.LoadInt32(&didTimeout) == 0); i++ { go func(i int) { future := leader.Apply([]byte(fmt.Sprintf("test%d", i)), time.Microsecond)