Merge pull request #5319 from xiang90/fix_rafthttp_test

*: fix TestTransportErrorc
This commit is contained in:
Xiang Li 2016-05-11 11:01:43 -07:00
commit ca105a1c89

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