Skip to content

Commit c3923f8

Browse files
author
Aidan Haran
committed
Fix another randomly failing test
1 parent 4aaf783 commit c3923f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ def test_errors_when_an_insert_query_prefixed_by_a_double_dash_comment_containin
5959
Subscriber.send(:load_schema!)
6060
original_test_errors_when_an_insert_query_prefixed_by_a_double_dash_comment_containing_read_command_is_called_while_preventing_writes
6161
end
62+
63+
# Fix randomly failing test. The loading of the model's schema was affecting the test.
64+
coerce_tests! :test_errors_when_an_insert_query_prefixed_by_a_double_dash_comment_is_called_while_preventing_writes
65+
def test_errors_when_an_insert_query_prefixed_by_a_double_dash_comment_is_called_while_preventing_writes_coerced
66+
Subscriber.send(:load_schema!)
67+
original_test_errors_when_an_insert_query_prefixed_by_a_double_dash_comment_is_called_while_preventing_writes
68+
end
6269
end
6370
end
6471

0 commit comments

Comments
 (0)