Skip to content

Commit 9a8cf5f

Browse files
committed
Fixed conflicting ports in tests.
1 parent f0464be commit 9a8cf5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fastapi_template/tests/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def run_default_check(context: BuilderContext, worker_id: str, without_pytest=Fa
3232
with compose.open("r") as compose_file:
3333
data = yaml.safe_load(compose_file)
3434
data["services"]["api"]["image"] = f"test_image:v{worker_id}"
35+
for service in data["services"]:
36+
del service["ports"]
3537
with compose.open("w") as compose_file:
3638
yaml.safe_dump(data, compose_file)
3739

0 commit comments

Comments
 (0)