Skip to content

Commit 86d3ea1

Browse files
authored
Merge pull request rails#52306 from fatkodima/fix-flaky-instrumentation-test
Fix a flaky Active Record instrumentation test
2 parents e98f4d8 + 182988b commit 86d3ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/instrumentation_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_payload_connection_with_query_cache_enabled
173173
end
174174

175175
def test_no_instantiation_notification_when_no_records
176-
author = Author.create!(name: "David")
176+
author = Author.create!(id: 100, name: "David")
177177

178178
called = false
179179
subscriber = ActiveSupport::Notifications.subscribe("instantiation.active_record") do

0 commit comments

Comments
 (0)