minor: test fix

This commit is contained in:
Kyle Banker 2010-08-05 08:58:11 -04:00
parent b8137c7833
commit 01db44304d
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class SlaveConnectionTest < Test::Unit::TestCase
@@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