Skip to content

Commit

Permalink
Revert "Fix test_signalctl_wait_for_09 (#6835)"
Browse files Browse the repository at this point in the history
This reverts commit a65ad3c.
  • Loading branch information
fantix committed Feb 14, 2024
1 parent 3970441 commit 0eb8b5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/test_signalctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,17 @@ 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(
sc.wait_for(_task(), cancel_on={signal.SIGTERM})
)
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())
Expand Down

0 comments on commit 0eb8b5d

Please sign in to comment.