Skip to content

Commit

Permalink
test_in_tail: Fix inappropriate variable name
Browse files Browse the repository at this point in the history
safety_mergin ->
safety_ratio

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed May 17, 2022
1 parent bd5a704 commit c6c5989
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2584,8 +2584,8 @@ def test_lines_collected_with_no_throttling(data)
## since no logs are left to be read
## Hence, d.record_count = prev_count
tail_watcher_interval = 1.0 # hard coded value in in_tail
safety_mergin = 1.02
jitter = tail_watcher_interval * safety_mergin
safety_ratio = 1.02
jitter = tail_watcher_interval * safety_ratio
sleep(1.0 + jitter)
assert_equal(0, d.record_count - prev_count)
end
Expand Down Expand Up @@ -2617,9 +2617,9 @@ def test_lines_collected_with_no_throttling(data)
d.run(timeout: 15) do
sleep_interval = 0.1
tail_watcher_interval = 1.0 # hard coded value in in_tail
safety_mergin = 1.02
lower_jitter = sleep_interval * safety_mergin
upper_jitter = (tail_watcher_interval + sleep_interval) * safety_mergin
safety_ratio = 1.02
lower_jitter = sleep_interval * safety_ratio
upper_jitter = (tail_watcher_interval + sleep_interval) * safety_ratio
lower_interval = rate_period - lower_jitter
upper_interval = rate_period + upper_jitter

Expand Down

0 comments on commit c6c5989

Please sign in to comment.