Explorar el Código

*: fix TestTransportErrorc

CI can be slow. We should just wait longer.
Xiang Li hace 9 años
padre
commit
4d0f474034
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      rafthttp/transport_test.go

+ 1 - 2
rafthttp/transport_test.go

@@ -146,10 +146,9 @@ func TestTransportErrorc(t *testing.T) {
 	}
 	tr.peers[1].send(raftpb.Message{})
 
-	testutil.WaitSchedule()
 	select {
 	case <-errorc:
-	default:
+	case <-time.After(1 * time.Second):
 		t.Fatalf("cannot receive error from errorc")
 	}
 }