minor: test fix

This commit is contained in:
Kyle Banker 2011-10-17 15:09:54 -05:00
parent ddb56a537f
commit 045a556e99
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ module Mongo
# NOTE: Do check if this needs to be more stringent. # NOTE: Do check if this needs to be more stringent.
# Probably not since if any node raises a connection failure, all nodes will be closed. # Probably not since if any node raises a connection failure, all nodes will be closed.
def connected? def connected?
@primary_pool && @primary_pool.host && @primary_pool.port @primary_pool && !@primary_pool.closed?
end end
# Determine if the connection is active. In a normal case the *server_info* operation # Determine if the connection is active. In a normal case the *server_info* operation