Skip to content

Commit 045a556

Browse files
committed
minor: test fix
1 parent ddb56a5 commit 045a556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/connection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def connecting?
537537
# NOTE: Do check if this needs to be more stringent.
538538
# Probably not since if any node raises a connection failure, all nodes will be closed.
539539
def connected?
540-
@primary_pool && @primary_pool.host && @primary_pool.port
540+
@primary_pool && !@primary_pool.closed?
541541
end
542542

543543
# Determine if the connection is active. In a normal case the *server_info* operation

0 commit comments

Comments
 (0)