Permalink
Browse files

minor: test fix

  • Loading branch information...
1 parent ddb56a5 commit 045a556e9959e6d0c2f0d1743aba91898eb455d9 @banker banker committed Oct 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo/connection.rb
View
@@ -537,7 +537,7 @@ def connecting?
# 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.
def connected?
- @primary_pool && @primary_pool.host && @primary_pool.port
+ @primary_pool && !@primary_pool.closed?
end
# Determine if the connection is active. In a normal case the *server_info* operation

0 comments on commit 045a556

Please sign in to comment.