From cf840ad4fc356cd581bf8839cbfacb43a6f50125 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 20 Oct 2023 16:31:40 +0900 Subject: [PATCH] test_in_tail: Ensure to wait rotate_wait Signed-off-by: Takuro Ashie --- test/plugin/test_in_tail.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/plugin/test_in_tail.rb b/test/plugin/test_in_tail.rb index 87d5015045..8919866683 100644 --- a/test/plugin/test_in_tail.rb +++ b/test/plugin/test_in_tail.rb @@ -3084,6 +3084,9 @@ def test_refreshTW_during_rotation sleep 3 Fluent::FileWrapper.open("#{@tmp_dir}/tail.txt0", "ab") {|f| f.puts "file3 log2"} + + # Wait `rotate_wait` for file2 to make sure to close all IO handlers + sleep 3 end inode_0 = tail_watchers[0]&.ino