diff --git a/packages/nice-grpc-client-middleware-devtools/src/index.test.ts b/packages/nice-grpc-client-middleware-devtools/src/index.test.ts index cd9182f2..22a3bc26 100644 --- a/packages/nice-grpc-client-middleware-devtools/src/index.test.ts +++ b/packages/nice-grpc-client-middleware-devtools/src/index.test.ts @@ -48,9 +48,9 @@ describe('devtools', () => { testBidiStream: throwUnimplemented, }); - const port = await server.listen('localhost:0'); + const port = await server.listen('127.0.0.1:0'); - const channel = createChannel(`localhost:${port}`); + const channel = createChannel(`127.0.0.1:${port}`); const client = createClientFactory() .use(devtoolsLoggingMiddleware) .create(TestService, channel); @@ -93,9 +93,9 @@ describe('devtools', () => { testBidiStream: throwUnimplemented, }); - const port = await server.listen('localhost:0'); + const port = await server.listen('127.0.0.1:0'); - const channel = createChannel(`localhost:${port}`); + const channel = createChannel(`127.0.0.1:${port}`); const client = createClientFactory() .use(devtoolsLoggingMiddleware) .create(TestDefinition, channel);