Skip to content

Commit 3875ea0

Browse files
committed
PYTHON-3011 Fix test_connections_are_only_returned_once (#781)
(cherry picked from commit c404150)
1 parent 0eb50fa commit 3875ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_load_balancer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_connections_are_only_returned_once(self):
4545
nconns = len(pool.sockets)
4646
self.db.test.find_one({})
4747
self.assertEqual(len(pool.sockets), nconns)
48-
self.db.test.aggregate([{'$limit': 1}])
48+
list(self.db.test.aggregate([{'$limit': 1}]))
4949
self.assertEqual(len(pool.sockets), nconns)
5050

5151
@client_context.require_load_balancer

0 commit comments

Comments
 (0)