Explorar o código

raft: extend wait timeout in TestNodeAdvance

This fixes the failure met in semaphore CI.
Yicheng Qin %!s(int64=10) %!d(string=hai) anos
pai
achega
0de52414cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")
 	}
 }