Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Feb 16, 2025
1 parent 7ea14cc commit 29d6813
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/http_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ def start_server():

@fixture(scope="module")
def http_server(tmp_path_factory, worker_id):
port = 9077 + random.randint(0, 1000) + (
int(worker_id.lstrip("gw")) if worker_id != "master" else 0
port = (
9077
+ random.randint(0, 1000)
+ (int(worker_id.lstrip("gw")) if worker_id != "master" else 0)
) # don't collide if tests running in parallel with multiple servers

server_dir = tmp_path_factory.mktemp("server_files").resolve()
Expand All @@ -130,8 +132,10 @@ def http_server(tmp_path_factory, worker_id):

@fixture(scope="module")
def https_server(tmp_path_factory, worker_id):
port = 4443 + random.randint(0, 1000) + (
int(worker_id.lstrip("gw")) if worker_id != "master" else 0
port = (
4443
+ random.randint(0, 1000)
+ (int(worker_id.lstrip("gw")) if worker_id != "master" else 0)
) # don't collide if tests running in parallel with multiple servers

server_dir = tmp_path_factory.mktemp("server_files").resolve()
Expand Down

0 comments on commit 29d6813

Please sign in to comment.