Skip to content

Commit

Permalink
Test: a try that actually re-tries
Browse files Browse the repository at this point in the history
on `RSpec::Expectations::ExpectationNotMetError`
  • Loading branch information
kares committed Jun 9, 2021
1 parent 1d5855f commit 4ed2e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/inputs/file_read_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
sincedb_content = File.read(sincedb_path).strip
expect( sincedb_content ).to_not be_empty

Stud.try(3.times) do
try(3) do
sleep(1.5) # > sincedb_clean_after

sincedb_content = File.read(sincedb_path).strip
Expand Down

0 comments on commit 4ed2e89

Please # to comment.