Skip to content

Commit

Permalink
CI: Try to fix an unstable test on macOS
Browse files Browse the repository at this point in the history
Sometimes test_unwatched_files_should_be_removed is failed on CI.

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Mar 28, 2024
1 parent 1a2759c commit e954a51
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 @@ -1606,7 +1606,7 @@ def test_unwatched_files_should_be_removed
d = create_driver(config, false)
d.end_if { d.instance.instance_variable_get(:@tails).keys.size >= 1 }
d.run(expect_emits: 1, shutdown: false) do
Fluent::FileWrapper.open("#{@tmp_dir}/tail.txt", "ab") { |f| f.puts "test3\n" }
Fluent::FileWrapper.open("#{@tmp_dir}/tail.txt", "ab") { |f| f.puts "test3\n"; f.fsync }
end

cleanup_file("#{@tmp_dir}/tail.txt")
Expand Down

0 comments on commit e954a51

Please sign in to comment.