Drop pause line from ctx cancel handler block in test

multihomed
Tyler Goodlet 2023-10-07 18:51:59 -04:00
parent d24a9e158f
commit c4cd573b26
1 changed files with 5 additions and 1 deletions

View File

@ -194,8 +194,12 @@ def test_peer_canceller():
# canceller should not have been remotely # canceller should not have been remotely
# cancelled. # cancelled.
assert canceller_ctx.cancel_called_remote is None 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' assert sleeper_ctx.canceller == 'canceller'
await tractor.pause(shield=True)
assert not sleep_ctx.cancelled_caught assert not sleep_ctx.cancelled_caught
raise raise