Skip to content

Commit 7d30f8f

Browse files
committed
Fix file cleans up sincedb entry
Add `ExpectationNotMetError` to the arguments to `Stud.try`. Without this, the retry logic does not trigger, leading to flakiness in this test as not enough time has elapsed for the sincedb entry to be cleaned up
1 parent be04655 commit 7d30f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/inputs/file_read_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
sincedb_content = File.read(sincedb_path).strip
339339
expect( sincedb_content ).to_not be_empty
340340

341-
Stud.try(3.times) do
341+
Stud.try(3.times, RSpec::Expectations::ExpectationNotMetError) do
342342
sleep(1.5) # > sincedb_clean_after
343343

344344
sincedb_content = File.read(sincedb_path).strip

0 commit comments

Comments
 (0)