From 1880d55b770c6ac7a6be441671142bc80bef1382 Mon Sep 17 00:00:00 2001 From: Yuta Iwama Date: Tue, 24 Mar 2020 12:26:32 +0900 Subject: [PATCH] 60 * 0.8 + 2 * i should be less than retry_state in this test retry_state = 60. So `i` should be less than 9 Signed-off-by: Yuta Iwama --- test/plugin/test_output_as_buffered_secondary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin/test_output_as_buffered_secondary.rb b/test/plugin/test_output_as_buffered_secondary.rb index cdf16bce17..39ab06cc22 100644 --- a/test/plugin/test_output_as_buffered_secondary.rb +++ b/test/plugin/test_output_as_buffered_secondary.rb @@ -617,7 +617,7 @@ def dummy_event_stream assert{ !chunks[1].empty? } 30.times do |i| # large enough - now = first_failure + 60 * 0.8 + 2 + [i, 10].min # must be less than retry_timeout + now = first_failure + 60 * 0.8 + 2 + [i, 9].min # must be less than retry_timeout Timecop.freeze( now ) @i.flush_thread_wakeup