mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5319 from xiang90/fix_rafthttp_test
*: fix TestTransportErrorc
This commit is contained in:
commit
ca105a1c89
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user