@@ -34,6 +34,7 @@ describe("Integration test for greeter service", () => {
3434 ] ,
3535
3636 settings : {
37+ ip : "0.0.0.0" ,
3738 port : 0 , // Random
3839 } ,
3940
@@ -126,7 +127,7 @@ describe("Integration test for greeter service", () => {
126127 afterAll ( ( ) => broker . stop ( ) ) ;
127128
128129 it ( "should call the greeter.hello action" , async ( ) => {
129- const res = await fetch ( `http://localhost :${ port } /graphql` , {
130+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
130131 method : "post" ,
131132 body : JSON . stringify ( {
132133 operationName : null ,
@@ -145,7 +146,7 @@ describe("Integration test for greeter service", () => {
145146 } ) ;
146147
147148 it ( "should call the greeter.welcome action with parameter" , async ( ) => {
148- const res = await fetch ( `http://localhost :${ port } /graphql` , {
149+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
149150 method : "post" ,
150151 body : JSON . stringify ( {
151152 operationName : null ,
@@ -164,7 +165,7 @@ describe("Integration test for greeter service", () => {
164165 } ) ;
165166
166167 it ( "should call the greeter.welcome action with query variable" , async ( ) => {
167- const res = await fetch ( `http://localhost :${ port } /graphql` , {
168+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
168169 method : "post" ,
169170 body : JSON . stringify ( {
170171 operationName : null ,
@@ -183,7 +184,7 @@ describe("Integration test for greeter service", () => {
183184 } ) ;
184185
185186 it ( "should call the greeter.welcome action with wrapped input params" , async ( ) => {
186- const res = await fetch ( `http://localhost :${ port } /graphql` , {
187+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
187188 method : "post" ,
188189 body : JSON . stringify ( {
189190 operationName : null ,
@@ -204,7 +205,7 @@ describe("Integration test for greeter service", () => {
204205 } ) ;
205206
206207 it ( "should call the greeter.danger and receives an error" , async ( ) => {
207- const res = await fetch ( `http://localhost :${ port } /graphql` , {
208+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
208209 method : "post" ,
209210 body : JSON . stringify ( {
210211 operationName : null ,
@@ -241,7 +242,7 @@ describe("Integration test for greeter service", () => {
241242 } ) ;
242243
243244 it ( "should not call the greeter.secret" , async ( ) => {
244- const res = await fetch ( `http://localhost :${ port } /graphql` , {
245+ const res = await fetch ( `http://127.0.0.1 :${ port } /graphql` , {
245246 method : "post" ,
246247 body : JSON . stringify ( {
247248 operationName : null ,
0 commit comments