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.
This commit is contained in:
Gyu-Ho Lee 2016-12-30 09:46:16 -08:00
parent 0dce29ae57
commit d25f9feb19
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C

View File

@ -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")
}
}