Port `test_rpc` off `run_in_actor`

Sole call-site: `run_in_actor(sleep_back_actor, ...)` ->
blocking `tractor.to_actor.run(..., an=n, ...)` (#477 removal).
The RPC-callback subactor is awaited in-caller instead of
reaped at nursery teardown; `name=`/`enable_modules=` map to
`to_actor.run()`'s same-named params, the rest to `**fn_kwargs`.

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
drop_ria_nursery
Gud Boi 2026-07-02 23:35:07 -04:00
parent 1f1dcbe1c1
commit 8253183b79
1 changed files with 2 additions and 1 deletions

View File

@ -111,8 +111,9 @@ def test_rpc_errors(
actor = tractor.current_actor() actor = tractor.current_actor()
assert actor.is_registrar assert actor.is_registrar
await n.run_in_actor( await tractor.to_actor.run(
sleep_back_actor, sleep_back_actor,
an=n,
actor_name=subactor_requests_to, actor_name=subactor_requests_to,
name='subactor', name='subactor',