From d25f9feb19bb5f2795c9cdb5e260a111730f1bf1 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 30 Dec 2016 09:46:16 -0800 Subject: [PATCH] rafthttp: bump up timeout in pipeline test Fix https://github.com/coreos/etcd/issues/6283. The timeout is too short. It could take more than 10ms to send when the buffer gets full after 'pipelineBufSize' of requests. --- rafthttp/pipeline_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rafthttp/pipeline_test.go b/rafthttp/pipeline_test.go index ecb4e4f6e..bdcdbc870 100644 --- a/rafthttp/pipeline_test.go +++ b/rafthttp/pipeline_test.go @@ -78,7 +78,7 @@ func TestPipelineExceedMaximumServing(t *testing.T) { for i := 0; i < connPerPipeline+pipelineBufSize; i++ { select { case p.msgc <- raftpb.Message{}: - case <-time.After(10 * time.Millisecond): + case <-time.After(time.Second): t.Errorf("failed to send out message") } }