Skip to content

Commit

Permalink
chore: update more examples to use 127.0.0.1 instead of localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 26, 2022
1 parent 8bb871b commit 7771740
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/e2e/test/consumer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("Pact", () => {
before(() =>
provider.setup().then(opts => {
// Get a dynamic port from the runtime
process.env.API_HOST = `http://localhost:${opts.port}`
process.env.API_HOST = `http://127.0.0.1:${opts.port}`
})
)

Expand Down
2 changes: 1 addition & 1 deletion examples/graphql/src/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const client = new ApolloClient({
headers: {
foo: "bar",
},
uri: "http://localhost:4000/graphql",
uri: "http://127.0.0.1:4000/graphql",
}),
})

Expand Down
2 changes: 1 addition & 1 deletion examples/mocha/test/get-dogs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pactWith(
provider: "MyProvider",
},
provider => {
let url = "http://localhost"
let url = "http://127.0.0.1"

const EXPECTED_BODY = [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/test/get-dog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ chai.use(sinonChai)
chai.use(chaiAsPromised)

describe("The Dog API", () => {
const url = "http://localhost"
const url = "http://127.0.0.1"
let dogService: DogService

const provider = new Pact({
Expand Down

0 comments on commit 7771740

Please sign in to comment.