You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit addresses `ActiveRecord::InstrumentationTest#test_payload_connection_with_query_cache_enabled` failure
with `postgresql` adapter because it executes `SHOW search_path` adds another notification that is executed via `sql_key`.
This statements is not executed by other database adapters.
- Failures fixed by this commit
```ruby
$ ARCONN=postgresql bin/test test/cases/instrumentation_test.rb -n test_payload_connection_with_query_cache_enabled
Using postgresql
Run options: -n test_payload_connection_with_query_cache_enabled --seed 65179
F
Failure:
ActiveRecord::InstrumentationTest#test_payload_connection_with_query_cache_enabled [test/cases/instrumentation_test.rb:142]:
Expected 2 instead of 3 notifications for sql.active_record.
Expected: 2
Actual: 3
bin/test test/cases/instrumentation_test.rb:138
Finished in 0.029114s, 34.3482 runs/s, 34.3482 assertions/s.
1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
$
```
Fixrails#53858
Related to rails#53822
0 commit comments