From 0eb8b5d83823523e6ac98337b158736e2e8ff0d1 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Wed, 14 Feb 2024 11:04:21 -0500 Subject: [PATCH] Revert "Fix `test_signalctl_wait_for_09` (#6835)" This reverts commit a65ad3c7b188a59ec79d50ddbc169dcad1cf6643. --- tests/common/test_signalctl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common/test_signalctl.py b/tests/common/test_signalctl.py index 99e749921f5..b88a84ec4ee 100644 --- a/tests/common/test_signalctl.py +++ b/tests/common/test_signalctl.py @@ -311,10 +311,9 @@ async def _task(): try: await self.wait_for_parent(2) # cancelled by signal except asyncio.CancelledError: - # In case the task cancellation is hanging, we should still - # be able to reliably cancel the task, see timeout below + # In case the task cancellation is hanging, .. fut.set_result(None) - await self.loop.create_future() + await self.wait_for_parent(2) with signalctl.SignalController(signal.SIGTERM) as sc: task = self.loop.create_task( @@ -322,6 +321,7 @@ async def _task(): ) await fut + # .. we should still be able to reliably cancel the task with self.assertRaises(asyncio.TimeoutError): await asyncio.wait_for(task, 0.2) self.assertTrue(task.done())