Skip to content

Commit

Permalink
test(nice-grpc-client-middleware-devtools): change localhost to 127.0…
Browse files Browse the repository at this point in the history
….0.1 (#471)

To fix potential ipv6 issues
  • Loading branch information
aikoven authored Oct 19, 2023
1 parent fa26b22 commit 99262e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 99262e5

Please sign in to comment.