Fix pooling test leak
This commit is contained in:
parent
a15ccb8ee7
commit
eceb69faa7
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user