Skip to content

Commit

Permalink
Add a first serious inter-peer remote cancel suite
Browse files Browse the repository at this point in the history
Tests that appropriate `Context` exit state, the relay of
a `ContextCancelled` error and its `.canceller: tuple[str, str]` value
are set when an inter-peer cancellation happens via an "out of band"
request method (in this case using `Portal.cancel_actor()` and that
cancellation is propagated "horizontally" to other peers. Verify that
any such cancellation scenario which also experiences an "error during
`ContextCancelled` handling" DOES NOT result in that further error being
suppressed and that the user's exception bubbles out of the
`Context.open_context()` block(s) appropriately!

Likely more tests to come as well as some factoring of the teardown
state checks where possible.

Pertains to serious testing the major work landing in #357
  • Loading branch information
goodboy committed Oct 18, 2023
1 parent 87c1113 commit ca3f7a1
Showing 1 changed file with 339 additions and 101 deletions.

0 comments on commit ca3f7a1

Please sign in to comment.