Skip to content

Commit d9199e3

Browse files
committed
Fix deprecation warning
1 parent c2b941d commit d9199e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/flipper/adapters/active_record_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494

9595
context "ActiveRecord connection_pool" do
9696
before do
97-
ActiveRecord::Base.connection_handler.clear_active_connections!
97+
ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
9898
end
9999

100100
context "#features" do
@@ -300,7 +300,7 @@
300300
end
301301

302302
it 'does not hold onto connections during write operations' do
303-
ActiveRecord::Base.connection_handler.clear_active_connections!
303+
ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
304304

305305
abstract_class.connected_to(role: :reading) do
306306
flipper = Flipper.new(adapter_with_roles)

0 commit comments

Comments
 (0)