From 2700e2ce9b402998cddd9acf742be596e5fefa78 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Wed, 1 Jun 2022 10:48:30 +0900 Subject: [PATCH] test_in_tail: Relax limit of duration for group watch tests The previous value seems too tight for poor environment such as ARM arch. Signed-off-by: Takuro Ashie --- test/plugin/test_in_tail.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/plugin/test_in_tail.rb b/test/plugin/test_in_tail.rb index 36abb25a6c..ef9d641afa 100644 --- a/test/plugin/test_in_tail.rb +++ b/test/plugin/test_in_tail.rb @@ -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) @@ -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