From e249c493b262f640c0bc8353be3570c42f2ea8d7 Mon Sep 17 00:00:00 2001 From: Cayman Date: Sat, 21 Jan 2023 13:38:00 -0500 Subject: [PATCH] fix: specify host explicitly in node tests --- test/max-connections-close.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/max-connections-close.spec.ts b/test/max-connections-close.spec.ts index 5ad0c26..c9cb926 100644 --- a/test/max-connections-close.spec.ts +++ b/test/max-connections-close.spec.ts @@ -32,7 +32,7 @@ describe('close server on maxConnections', () => { }) function createSocket (): net.Socket { - const socket = net.connect({ port }) + const socket = net.connect({ host: '127.0.0.1', port }) // eslint-disable-next-line @typescript-eslint/promise-function-async afterEachCallbacks.unshift(async () => {