Skip to content

Commit

Permalink
test_in_tail: Ensure to wait rotate_wait
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Oct 20, 2023
1 parent 6ce1bbb commit cf840ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf840ad

Please sign in to comment.