Browse Source

raft: extend wait timeout in TestNodeAdvance

This fixes the failure met in semaphore CI.
Yicheng Qin 10 years ago
parent
commit
0de52414cd
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")
 	}
 }