Skip to content

Commit d0ef72c

Browse files
committed
Add more tolerance to file deletion
1 parent ba7bc79 commit d0ef72c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/filewatch/tailing_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ module FileWatch
450450
FileUtils.mv(file_path2, file_path3)
451451
end
452452
.then("wait") do
453-
wait(4).for do
453+
wait(8).for do
454454
listener1.lines.size == 32 && listener2.calls == [:delete] && listener3.calls == [:open, :accept, :timed_out]
455455
end.to eq(true), "listener1.lines != 32 or listener2.calls != [:delete] or listener3.calls != [:open, :accept, :timed_out]"
456456
end

spec/inputs/file_read_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def wait_for_start_processing(run_thread, timeout: 1.0)
363363
end
364364
end
365365

366-
def wait_for_file_removal(path, timeout: 3 * interval)
366+
def wait_for_file_removal(path, timeout: 5 * interval)
367367
wait(timeout).for { File.exist?(path) }.to be_falsey
368368
end
369369
end

0 commit comments

Comments
 (0)