From 4bd935e859f73d12933c2c472858ab564b3c8992 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 7 Jan 2025 10:46:54 +0100 Subject: [PATCH] fixup Signed-off-by: Matteo Collina --- test/subscription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/subscription.js b/test/subscription.js index 2b0475bd..48143219 100644 --- a/test/subscription.js +++ b/test/subscription.js @@ -2694,7 +2694,7 @@ test('wrong messages do not crash the server', async (t) => { t.teardown(fastify.close.bind(fastify)) - const ws = new WebSocket(`ws://127.0.0.1:${fastify.server.address().port}/graphql`, 'graphql-ws') + const ws = new WebSocket(`ws://localhost:${fastify.server.address().port}/graphql`, 'graphql-ws') await once(ws, 'open') ws._socket.write(Buffer.from([0xa2, 0x00]))