Correct cancellation and asyncio test prose
Fix five spelling errors in comments and failure text touched by the one-shot migration: one `propagate`, one `Daemon` and three `directly` corrections. Review: PR #484 (GitHub Copilot) https://github.com/goodboy/tractor/pull/484#pullrequestreview-5025348921 (this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`))drop_ria_nursery
parent
8739c5fadb
commit
cf56f33be6
|
|
@ -436,7 +436,7 @@ async def test_some_cancels_all(
|
||||||
|
|
||||||
except tractor.RemoteActorError as err:
|
except tractor.RemoteActorError as err:
|
||||||
assert err.boxed_type == err_type
|
assert err.boxed_type == err_type
|
||||||
# we only expect this first error to propogate
|
# we only expect this first error to propagate
|
||||||
# (all other daemons are cancelled before they
|
# (all other daemons are cancelled before they
|
||||||
# can be scheduled)
|
# can be scheduled)
|
||||||
num_actors = 1
|
num_actors = 1
|
||||||
|
|
@ -445,7 +445,7 @@ async def test_some_cancels_all(
|
||||||
else:
|
else:
|
||||||
if expect_error:
|
if expect_error:
|
||||||
pytest.fail(
|
pytest.fail(
|
||||||
"Deamon call should fail at checkpoint?")
|
"Daemon call should fail at checkpoint?")
|
||||||
|
|
||||||
# should error here with a `RemoteActorError` or a beg of them
|
# should error here with a `RemoteActorError` or a beg of them
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -667,7 +667,7 @@ def test_basic_interloop_channel_stream(
|
||||||
async with tractor.open_nursery(
|
async with tractor.open_nursery(
|
||||||
registry_addrs=[reg_addr],
|
registry_addrs=[reg_addr],
|
||||||
) as an:
|
) as an:
|
||||||
# should raise RAE diectly
|
# should raise RAE directly
|
||||||
await to_actor.run(
|
await to_actor.run(
|
||||||
partial(
|
partial(
|
||||||
stream_from_aio,
|
stream_from_aio,
|
||||||
|
|
@ -726,7 +726,7 @@ def test_trio_closes_early_causes_aio_checkpoint_raise(
|
||||||
# enable_stack_on_sig=True,
|
# enable_stack_on_sig=True,
|
||||||
registry_addrs=[reg_addr],
|
registry_addrs=[reg_addr],
|
||||||
) as an:
|
) as an:
|
||||||
# should raise RAE diectly
|
# should raise RAE directly
|
||||||
print('waiting on final infected subactor result..')
|
print('waiting on final infected subactor result..')
|
||||||
res: None = await to_actor.run(
|
res: None = await to_actor.run(
|
||||||
partial(
|
partial(
|
||||||
|
|
@ -779,7 +779,7 @@ def test_aio_exits_early_relays_AsyncioTaskExited(
|
||||||
debug_mode=debug_mode,
|
debug_mode=debug_mode,
|
||||||
# enable_stack_on_sig=True,
|
# enable_stack_on_sig=True,
|
||||||
) as an:
|
) as an:
|
||||||
# should raise RAE diectly
|
# should raise RAE directly
|
||||||
print('waiting on final infected subactor result..')
|
print('waiting on final infected subactor result..')
|
||||||
res: None = await to_actor.run(
|
res: None = await to_actor.run(
|
||||||
partial(
|
partial(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue