ソースを参照

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.
Gyu-Ho Lee 9 年 前
コミット
d25f9feb19
1 ファイル変更1 行追加1 行削除
  1. 1 1
      rafthttp/pipeline_test.go

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