Skip to content

Commit

Permalink
minor: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Aug 5, 2010
1 parent b8137c7 commit 01db443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/slave_connection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.connect_to_slave
@@port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT
conn = Connection.new(@@host, @@port, :slave_ok => true)
response = conn['admin'].command(:ismaster => 1)
Mongo::Support.ok?(response['ok']) && response['ismaster'] != 1
Mongo::Support.ok?(response) && response['ismaster'] != 1
end

if self.connect_to_slave
Expand Down

0 comments on commit 01db443

Please sign in to comment.