Skip to content

Commit 89c7e20

Browse files
committed
Attempt to further reduce test flakiness
This plugin suffers from a large amount of test flakiness in the travis ci environment. This commit continues the attempts to reduce this flakiness, starting with #263 Mostly, this is increasing timeouts to deal with sluggish build servers, but also includes a fix to a Stud.try call which would not retry due to failure exceptions not matching.
1 parent ba7bc79 commit 89c7e20

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)