Skip to content

Commit

Permalink
test_in_tail: Don't clean up directory before shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Sep 1, 2022
1 parent f70cb60 commit f0c66d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,6 @@ def test_unwatched_files_should_be_removed
Fluent::FileWrapper.open("#{@tmp_dir}/tail.txt", "ab") { |f| f.puts "test3\n" }
end

cleanup_directory(@tmp_dir)
waiting(20) { sleep 0.1 until Dir.glob("#{@tmp_dir}/*.txt").size == 0 } # Ensure file is deleted on Windows
waiting(5) { sleep 0.1 until d.instance.instance_variable_get(:@tails).keys.size <= 0 }

Expand All @@ -1625,6 +1624,7 @@ def test_unwatched_files_should_be_removed
)
ensure
d.instance_shutdown if d && d.instance
cleanup_directory(@tmp_dir)
end

def count_timer_object
Expand Down

0 comments on commit f0c66d9

Please sign in to comment.