Skip to content

Commit 30aee98

Browse files
committed
Fix flaky build
These tests have `use_transcational_tests` set to false so we need to delete the `Cpk::Book` and `Cpk::Order` in the teardown to avoid flaky builds.
1 parent fdb7412 commit 30aee98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

activerecord/test/cases/autosave_association_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
939939
Parrot.delete_all
940940
@ship.delete
941941
@pirate.delete
942+
Cpk::Book.delete_all
943+
Cpk::Order.delete_all
942944
end
943945

944946
# reload

0 commit comments

Comments
 (0)