Skip to content

Commit 6581e58

Browse files
elprans1st1
authored andcommitted
Add a test for run_until_complete(asyncpg.create_pool())
This is to see if #202 reproduces in CI.
1 parent 9744ade commit 6581e58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_pool.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ async def test_pool_13(self):
258258

259259
await pool.close()
260260

261+
def test_pool_init_run_until_complete(self):
262+
pool_init = self.create_pool(database='postgres')
263+
pool = self.loop.run_until_complete(pool_init)
264+
self.assertIsInstance(pool, asyncpg.pool.Pool)
265+
261266
async def test_pool_exception_in_setup_and_init(self):
262267
class Error(Exception):
263268
pass

0 commit comments

Comments
 (0)