Skip to content

Commit

Permalink
golent(1) var already initialized to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sean- committed Jun 30, 2016
1 parent f413744 commit 691f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 691f170

Please sign in to comment.