forked from goodboy/tractor
1
0
Fork 0

Expect context cancelled when we cancel

round_2_ci_windows
Tyler Goodlet 2021-06-30 13:52:04 -04:00
parent b21e2a6caa
commit 0623de0b47
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ async def test_caller_closes_ctx_after_callee_opens_stream(
async with ctx.open_stream() as stream:
async for msg in stream:
pass
except trio.ClosedResourceError:
except tractor.ContextCancelled:
pass
else:
assert 0, "Should have received closed resource error?"