Browse Source

Merge pull request #3801 from yichengq/fix-raft-timeout

raft: extend wait timeout in TestNodeAdvance
Xiang Li 10 years ago
parent
commit
94c6b6a93d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/node_test.go

+ 1 - 1
raft/node_test.go

@@ -463,7 +463,7 @@ func TestNodeAdvance(t *testing.T) {
 	n.Advance()
 	select {
 	case <-n.Ready():
-	case <-time.After(time.Millisecond):
+	case <-time.After(100 * time.Millisecond):
 		t.Errorf("expect Ready after Advance, but there is no Ready available")
 	}
 }