spec/runners/crud/test_base.rb in mongo-2.18.3 vs spec/runners/crud/test_base.rb in mongo-2.19.0
- old
+ new
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-# encoding: utf-8
+# rubocop:todo all
module Mongo
module CRUD
class CRUDTestBase
@@ -20,10 +20,10 @@
end
end
def clear_fail_point(client)
if @fail_point_command
- client.use(:admin).command(BSON::Document.new(@fail_point_command).merge(mode: "off"))
+ ClientRegistry.instance.global_client('root_authorized').use(:admin).command(BSON::Document.new(@fail_point_command).merge(mode: "off"))
end
end
private