(self)
| 965 | await pool.close() |
| 966 | |
| 967 | async def test_pool_init_and_use_race(self): |
| 968 | pool = self.create_pool(database='postgres', min_size=1, max_size=1) |
| 969 | |
| 970 | pool_task = asyncio.ensure_future(pool) |
| 971 | await asyncio.sleep(0) |
| 972 | |
| 973 | with self.assertRaisesRegex( |
| 974 | asyncpg.InterfaceError, |
| 975 | r'being initialized, but not yet ready'): |
| 976 | |
| 977 | await pool.fetchval('SELECT 1') |
| 978 | |
| 979 | await pool_task |
| 980 | await pool.close() |
| 981 | |
| 982 | async def test_pool_remote_close(self): |
| 983 | pool = await self.create_pool(min_size=1, max_size=1) |
nothing calls this directly
no test coverage detected