MCPcopy
hub / github.com/MagicStack/asyncpg / test_pool_03

Method test_pool_03

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

Source from the content-addressed store, hash-verified

73 await asyncio.gather(*tasks)
74
75 async def test_pool_03(self):
76 pool = await self.create_pool(database='postgres',
77 min_size=1, max_size=1)
78
79 con = await pool.acquire(timeout=1)
80 with self.assertRaises(asyncio.TimeoutError):
81 await pool.acquire(timeout=0.03)
82
83 pool.terminate()
84 del con
85
86 async def test_pool_04(self):
87 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