Fix pooling test leak

This commit is contained in:
Noah Stapp 2026-05-18 13:29:21 -04:00
parent a15ccb8ee7
commit eceb69faa7
2 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class _TestPoolingBase(AsyncIntegrationTest):
kwargs["server_api"] = pool_options.server_api
pool = Pool(pair, PoolOptions(*args, **kwargs))
await pool.ready()
self.addAsyncCleanup(pool.close)
return pool

View File

@ -172,6 +172,7 @@ class _TestPoolingBase(IntegrationTest):
kwargs["server_api"] = pool_options.server_api
pool = Pool(pair, PoolOptions(*args, **kwargs))
pool.ready()
self.addCleanup(pool.close)
return pool