Skip to content

Commit

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

Expand Down

0 comments on commit 0ef93ab

Please sign in to comment.