Skip to content

Commit

Permalink
60 * 0.8 + 2 * i should be less than retry_state
Browse files Browse the repository at this point in the history
in this test retry_state = 60. So `i` should be less than 9

Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Mar 24, 2020
1 parent 485ab93 commit 1880d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugin/test_output_as_buffered_secondary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1880d55

Please sign in to comment.