forked from goodboy/tractor
1
0
Fork 0

Drop run and rpc_module_paths from rpc tests

drop_run
Tyler Goodlet 2021-02-24 18:20:59 -05:00
parent 3bddf9a94b
commit 9e64161538
1 changed files with 8 additions and 8 deletions

View File

@ -74,11 +74,15 @@ def test_rpc_errors(arb_addr, to_call, testdir):
remote_err = inside_err
async def main():
actor = tractor.current_actor()
assert actor.is_arbiter
# spawn a subactor which calls us back
async with tractor.open_nursery() as n:
async with tractor.open_nursery(
arbiter_addr=arb_addr,
enable_modules=exposed_mods.copy(),
) as n:
actor = tractor.current_actor()
assert actor.is_arbiter
await n.run_in_actor(
sleep_back_actor,
actor_name=subactor_requests_to,
@ -94,11 +98,7 @@ def test_rpc_errors(arb_addr, to_call, testdir):
)
def run():
tractor.run(
main,
arbiter_addr=arb_addr,
rpc_module_paths=exposed_mods.copy(),
)
trio.run(main)
# handle both parameterized cases
if exposed_mods and func_defined: