Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_in_tail: Relax limit of duration for group watch tests #3771

Merged
merged 1 commit into from Jun 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/plugin/test_in_tail.rb
Expand Up @@ -2589,7 +2589,7 @@ 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_ratio = 1.02
safety_ratio = 1.2
jitter = tail_watcher_interval * safety_ratio
sleep(1.0 + jitter)
assert_equal(0, d.record_count - prev_count)
Expand Down Expand Up @@ -2622,7 +2622,7 @@ 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_ratio = 1.02
safety_ratio = 1.2
lower_jitter = sleep_interval * safety_ratio
upper_jitter = (tail_watcher_interval + sleep_interval) * safety_ratio
lower_interval = rate_period - lower_jitter
Expand Down