Skip to content

Commit

Permalink
Updated conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iSOLveIT committed Oct 23, 2023
1 parent b5f67e0 commit 1c83dba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1c83dba

Please sign in to comment.