Skip to content

Commit 708570d

Browse files
committed
Workaround for randomly failing test
1 parent 6a6650b commit 708570d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,3 +1470,15 @@ def test_vebose_query_logs_coerced
14701470
original_test_vebose_query_logs
14711471
end
14721472
end
1473+
1474+
1475+
1476+
1477+
class ActiveRecordSchemaTest < ActiveRecord::TestCase
1478+
# Workaround for randomly failing test.
1479+
coerce_tests! :test_has_primary_key
1480+
def test_has_primary_key_coerced
1481+
@schema_migration.reset_column_information
1482+
original_test_has_primary_key
1483+
end
1484+
end

0 commit comments

Comments
 (0)