mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5382 from gyuho/rafthttp_timeout
rafthttp: fix TestSendMessageWhenStreamIsBroken
This commit is contained in:
commit
7678fc153a
@ -131,8 +131,8 @@ func TestSendMessageWhenStreamIsBroken(t *testing.T) {
|
||||
n++
|
||||
tr.Send([]raftpb.Message{{Type: raftpb.MsgHeartbeat, From: 1, To: 2, Term: 1, Commit: 3}})
|
||||
case <-recvc:
|
||||
if n > 10 {
|
||||
t.Errorf("disconnection time = %dms, want < 10ms", n)
|
||||
if n > 50 {
|
||||
t.Errorf("disconnection time = %dms, want < 50ms", n)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user