diff --git a/tests/conftest.py b/tests/conftest.py index 69a867b91..ea32fce56 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -97,11 +97,11 @@ def check_server_connection(log_path: str): return True return False - http_server_process = xprocess.getinfo("http_server") - if not check_server_connection(log_path=http_server_process.logpath): + if not check_server_connection(log_path=xprocess.getinfo("http_server").logpath): # Start the process and ensure it is running - _, logfile = xprocess.ensure("http_server", Starter, restart=True, persist_logs=False) # noqa:F841 + _, logfile = xprocess.ensure("http_server", Starter, persist_logs=False) # noqa:F841 + http_server_process = xprocess.getinfo("http_server") server_url = f"http://{addr}:{port}" http_server_process.url = server_url