We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326d9fb commit 73899f1Copy full SHA for 73899f1
test/replica_set/read_preference_test.rb
@@ -189,14 +189,6 @@ def prepare_routing_test
189
@repl_cons.each do |client|
190
client.stubs(:pinned_pool).returns(nil)
191
end
192
-
193
- @secondaries = []
194
- @rs.repl_set_seeds.each do |host_port|
195
- host, port = host_port.split(':')
196
- client = MongoClient.new(host, port, :slave_ok => true)
197
- authenticate_client(client)
198
- secondary?(client) ? @secondaries << client : @primary_direct = client
199
- end
200
201
202
def make_connection(mode = :primary, opts = {})
0 commit comments