Skip to content

Commit

Permalink
same for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eiskrenkov authored and byroot committed Nov 23, 2023
1 parent 7b63945 commit 28edb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fetch_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ def test_fetch_cache_hit_does_not_checkout_database_connection
@record.save!
record = Item.fetch(@record.id)

ActiveRecord::Base.clear_active_connections!
ActiveRecord::Base.clear_active_connections!(ActiveRecord::Base.current_role)

assert_equal(record, Item.fetch(@record.id))

assert_equal(false, ActiveRecord::Base.connection_handler.active_connections?)
assert_equal(false, ActiveRecord::Base.connection_handler.active_connections?(ActiveRecord::Base.current_role))
end

def test_fetch_raises_when_called_on_a_scope
Expand Down

0 comments on commit 28edb79

Please sign in to comment.