Skip to content

Commit

Permalink
fix node 18 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Apr 23, 2023
1 parent 544ec7f commit cef1659
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/integration/greeter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe("Integration test for greeter service", () => {
],

settings: {
ip: "0.0.0.0",
port: 0, // Random
},

Expand Down Expand Up @@ -126,7 +127,7 @@ describe("Integration test for greeter service", () => {
afterAll(() => broker.stop());

it("should call the greeter.hello action", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand All @@ -145,7 +146,7 @@ describe("Integration test for greeter service", () => {
});

it("should call the greeter.welcome action with parameter", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand All @@ -164,7 +165,7 @@ describe("Integration test for greeter service", () => {
});

it("should call the greeter.welcome action with query variable", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand All @@ -183,7 +184,7 @@ describe("Integration test for greeter service", () => {
});

it("should call the greeter.welcome action with wrapped input params", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand All @@ -204,7 +205,7 @@ describe("Integration test for greeter service", () => {
});

it("should call the greeter.danger and receives an error", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand Down Expand Up @@ -241,7 +242,7 @@ describe("Integration test for greeter service", () => {
});

it("should not call the greeter.secret", async () => {
const res = await fetch(`http://localhost:${port}/graphql`, {
const res = await fetch(`http://127.0.0.1:${port}/graphql`, {
method: "post",
body: JSON.stringify({
operationName: null,
Expand Down

0 comments on commit cef1659

Please sign in to comment.