From d20cb40f4fa77cceef47f50c851fe45b2b34d632 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 17 May 2016 16:03:54 -0700 Subject: [PATCH] rafthttp: fix TestSendMessageWhenStreamIsBroken Fix https://github.com/coreos/etcd/issues/5381. In case CI being slow that taking more than 10ms. --- rafthttp/functional_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rafthttp/functional_test.go b/rafthttp/functional_test.go index ae348564e..f2c80ffaf 100644 --- a/rafthttp/functional_test.go +++ b/rafthttp/functional_test.go @@ -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 }