Skip to content

Commit

Permalink
Revert "Simplified test"
Browse files Browse the repository at this point in the history
This reverts commit 0ef93ab.
  • Loading branch information
ankane committed Oct 8, 2024
1 parent 0ef93ab commit 711b01a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/database_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ def test_n_duration
def test_connection_leasing
ActiveRecord::Base.connection_handler.clear_active_connections!
assert_nil ActiveRecord::Base.connection_pool.active_connection?
User.group_by_day(:created_at).count
ActiveRecord::Base.connection_pool.with_connection do
User.group_by_day(:created_at).count
end
assert_nil ActiveRecord::Base.connection_pool.active_connection?
end

Expand Down

0 comments on commit 711b01a

Please sign in to comment.