mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 21:34:23 +08:00
f69f0211df
In some cases in CI env, it seems the AR connection isn’t available and the `ensure` block is executed. It’s calling `#verify!` on the connection, so it can fail sometimes. This is probably why `#clear_active_connections!` was failing too sometimes. Here, we just check the connection is present before clearing the connections. |
||
---|---|---|
.. | ||
defer.rb |