Drop pause line from ctx cancel handler block in test
parent
d24a9e158f
commit
c4cd573b26
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue