Не запускать второй прокси, пока первый ещё останавливается (#1529)

This commit is contained in:
enderlit
2026-11-23 06:43:23 +02:00
committed by GitHub
parent 2c1984f071
commit 2ae590ed21
5 changed files with 467 additions and 31 deletions
+2
View File
@@ -295,6 +295,8 @@ class CfWorkerPoolTest(unittest.IsolatedAsyncioTestCase):
self.assertIsNone(await self.pool.get(2, '192.0.2.2', ['worker.example']))
await self.wait_for(lambda: bool(self.pool._idle[2]))
self.assertIs(self.pool._idle[2][0][0], ready)
# Refill and stale connection cleanup run independently.
await self.wait_for(lambda: stale.writer.close.called)
stale.writer.close.assert_called_once()
await self.pool.close()