Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e102203

Browse files
committedJun 15, 2023
chore(docker): override url if not linux
1 parent bd7c316 commit e102203

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎examples/common/sharedfixtures.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def publish_existing_pact(broker):
6666
"PACT_BROKER_PASSWORD": "pactbroker",
6767
}
6868

69-
if platform.platform().lower() != "linux":
69+
target_platform = platform.platform().lower()
70+
71+
if 'macos' in target_platform or 'windows' in target_platform:
7072
envs["PACT_BROKER_BASE_URL"] = "http://host.docker.internal:9292"
7173

7274
client = docker.from_env()

0 commit comments

Comments
 (0)
Please sign in to comment.