Skip to content

Commit 01db443

Browse files
committed
minor: test fix
1 parent b8137c7 commit 01db443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/slave_connection_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def self.connect_to_slave
99
@@port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT
1010
conn = Connection.new(@@host, @@port, :slave_ok => true)
1111
response = conn['admin'].command(:ismaster => 1)
12-
Mongo::Support.ok?(response['ok']) && response['ismaster'] != 1
12+
Mongo::Support.ok?(response) && response['ismaster'] != 1
1313
end
1414

1515
if self.connect_to_slave

0 commit comments

Comments
 (0)