Skip to content

Commit b05ac0e

Browse files
authored
PYTHON-2460 Client can create more than minPoolSize background connections (#782)
1 parent 9a47c30 commit b05ac0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_pooling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,14 @@ def test_socket_checker(self):
291291
def test_return_socket_after_reset(self):
292292
pool = self.create_pool()
293293
with pool.get_socket({}) as sock:
294+
self.assertEqual(pool.active_sockets, 1)
295+
self.assertEqual(pool.operation_count, 1)
294296
pool.reset()
295297

296298
self.assertTrue(sock.closed)
297299
self.assertEqual(0, len(pool.sockets))
300+
self.assertEqual(pool.active_sockets, 0)
301+
self.assertEqual(pool.operation_count, 0)
298302

299303
def test_pool_check(self):
300304
# Test that Pool recovers from two connection failures in a row.

0 commit comments

Comments
 (0)