Skip to content

Commit

Permalink
Fix flaky spec failure
Browse files Browse the repository at this point in the history
Dirty tests should clean up after themselves, not cleanup other dirty specs
leaks.

In this case, the specs were cleaning up dirty state before them, so
they could work, but leaking state after being running.
  • Loading branch information
deivid-rodriguez committed Jan 17, 2020
1 parent 3409893 commit f02b0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/result_merger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "timeout"

describe SimpleCov::ResultMerger do
before do
after do
SimpleCov::ResultMerger.clear_resultset
File.delete(SimpleCov::ResultMerger.resultset_path) if File.exist?(SimpleCov::ResultMerger.resultset_path)
end
Expand Down

0 comments on commit f02b0a4

Please sign in to comment.