10000 Fix running tests on mac by mangalaman93 · Pull Request #9441 · hypermodeinc/dgraph · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix running tests on mac #9441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025
Merged

Fix running tests on mac #9441

merged 1 commit into from
Jun 17, 2025

Conversation

mangalaman93
Copy link
Member

Because the way docker is setup on Mac (with a layer of linux VM in between the container and mac host), docker inspect does not know about port mapping from host to container. We instead use docker ps on Mac to get the port mappings.

Because the way docker is setup on Mac (with a layer of linux VM
in between the container and mac host), docker inspect does not
know about port mapping from host to container. We instead use
docker ps on Mac to get the port mappings.
@Copilot Copilot AI review requested due to automatic review settings June 17, 2025 08:15
@mangalaman93 mangalaman93 requested a review from a team as a code owner June 17, 2025 08:15
@mangalaman93 mangalaman93 enabled auto-merge (squash) June 17, 2025 08:15
@github-actions github-actions bot added the go Pull requests that update Go code label Jun 17, 2025
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue with running tests on macOS by using "docker ps" instead of "docker inspect" to retrieve port mappings, addressing the macOS-specific behavior of Docker.

  • Added a conditional branch to use getPortMappingsOnMac on Darwin.
  • Introduced a new function getPortMappingsOnMac to parse port mappings from "docker ps" output.

@mangalaman93 mangalaman93 merged commit ef6f27d into main Jun 17, 2025
14 checks passed
@mangalaman93 mangalaman93 deleted the aman/mac branch June 17, 2025 09:09
Copy link
trunk-io bot commented Jun 17, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants
0