Skip to content

Commit

Permalink
Prefer docker host IP over hostname on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurre authored and GitHub committed Aug 11, 2021
1 parent 92c2874 commit 1b8f44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/updater-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Updater', () => {
process.env.DEPENDABOT_API_URL || fakeDependabotApiUrl
// Used from within the updater container to update the job state and create prs
const internalDockerHost =
process.platform === 'darwin' ? 'host.docker.internal' : 'localhost'
process.platform === 'darwin' ? 'host.docker.internal' : '172.17.0.1'
const internalDependabotApiUrl =
process.env.DEPENDABOT_API_URL ||
`http://${internalDockerHost}:${FAKE_SERVER_PORT}`
Expand Down

0 comments on commit 1b8f44f

Please sign in to comment.