Drop run and rpc_module_paths from rpc tests
parent
3bddf9a94b
commit
9e64161538
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue