Skip to content

Commit 73899f1

Browse files
committed
RUBY-800 Remove unecessary lines in read pref test
1 parent 326d9fb commit 73899f1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test/replica_set/read_preference_test.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,6 @@ def prepare_routing_test
189189
@repl_cons.each do |client|
190190
client.stubs(:pinned_pool).returns(nil)
191191
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
200192
end
201193

202194
def make_connection(mode = :primary, opts = {})

0 commit comments

Comments
 (0)