MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_pool_03

Method test_pool_03

tests/test_pool.py:91–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 await asyncio.gather(*tasks)
90
91 async def test_pool_03(self):
92 pool = await self.create_pool(database='postgres',
93 init_size=1, min_size=1, max_size=1)
94
95 con = await pool.acquire(timeout=1)
96 with self.assertRaises(asyncio.TimeoutError):
97 await pool.acquire(timeout=0.03)
98
99 pool.terminate()
100 del con
101
102 async def test_pool_04(self):
103 pool = await self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 3

create_poolMethod · 0.45
acquireMethod · 0.45
terminateMethod · 0.45

Tested by

no test coverage detected