Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address `ActiveRecord::InstrumentationTest#test_payload_connection_wi…
…th_query_cache_enabled` failure 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 $ ``` Fix rails#53858 Related to rails#53822
- Loading branch information