From 606efa5bb7da1bc2ae175e154ea99023efa017b8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 26 Jan 2023 12:43:32 -0500 Subject: [PATCH] Adjust daemon command to use new `registry_addr` --- tests/conftest.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9b26de6..af42b85 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -205,16 +205,22 @@ def sig_prog(proc, sig): @pytest.fixture -def daemon(loglevel, testdir, arb_addr): - """Run a daemon actor as a "remote arbiter". - """ +def daemon( + loglevel: str, + testdir, + arb_addr: tuple[str, int], +): + ''' + Run a daemon actor as a "remote arbiter". + + ''' if loglevel in ('trace', 'debug'): # too much logging will lock up the subproc (smh) loglevel = 'info' cmdargs = [ sys.executable, '-c', - "import tractor; tractor.run_daemon([], arbiter_addr={}, loglevel={})" + "import tractor; tractor.run_daemon([], registry_addr={}, loglevel={})" .format( arb_addr, "'{}'".format(loglevel) if loglevel else None)