*: fix TestTransportErrorc

CI can be slow. We should just wait longer.
This commit is contained in:
Xiang Li 2016-05-11 10:09:38 -07:00
parent 5cbd8cefc9
commit 4d0f474034

View File

@ -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")
}
}