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
A [previous commit][0] addressed an issue in the reconnect tests where
the PostgreSQL connection was not being terminated in a way that
required reconnection (but the test passed anyways).
This commit adds an additional assertion to the test to ensure the
connection id has changed and a reconnect has occurred.
When run with the PostgreSQL adapter and pg_cancel_backend
instead of pg_terminate_backend, the test now correctly fails:
```
vscode ➜ /workspaces/rails/activerecord (hm-vnpxkwrpuvlmylmy) $ ARCONN=postgresql bin/test test/cases/adapter_test.rb:884
Using postgresql
Run options: --seed 21322
# Running:
F
Failure:
ActiveRecord::AdapterConnectionTest#test_#execute_is_retryable [test/cases/adapter_test.rb:891]:
Expected 3968 to not be equal to 3968.
bin/test test/cases/adapter_test.rb:884
Finished in 0.459251s, 2.1775 runs/s, 10.8873 assertions/s.
1 runs, 5 assertions, 1 failures, 0 errors, 0 skips
```
[0]: 8938715
0 commit comments