From 4d0f47403497219e929a7cf26a3798dc8a8c5c7d Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 11 May 2016 10:09:38 -0700 Subject: [PATCH] *: fix TestTransportErrorc CI can be slow. We should just wait longer. --- rafthttp/transport_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rafthttp/transport_test.go b/rafthttp/transport_test.go index 09144f866..13a473190 100644 --- a/rafthttp/transport_test.go +++ b/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") } }