From c4cd573b26bc06922d2b80eaa0347feb4bd18830 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 7 Oct 2023 18:51:59 -0400 Subject: [PATCH] Drop pause line from ctx cancel handler block in test --- tests/test_inter_peer_cancellation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_inter_peer_cancellation.py b/tests/test_inter_peer_cancellation.py index bf93372..aeb70e8 100644 --- a/tests/test_inter_peer_cancellation.py +++ b/tests/test_inter_peer_cancellation.py @@ -194,8 +194,12 @@ def test_peer_canceller(): # canceller should not have been remotely # cancelled. assert canceller_ctx.cancel_called_remote is None + + # NOTE: will only enter if you wrap in + # a shielded cs.. + # await tractor.pause() # TODO: shield=True) + assert sleeper_ctx.canceller == 'canceller' - await tractor.pause(shield=True) assert not sleep_ctx.cancelled_caught raise