From f0aaf0030955035f0e6ab081981630ced23230b8 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 7 Jan 2025 11:21:14 +0100 Subject: [PATCH] Update fastify to v5 (#1129) * chore: update fastify to ^5.0.0 * fixup Signed-off-by: Matteo Collina --------- Signed-off-by: Matteo Collina Co-authored-by: Tony133 --- package.json | 2 +- test/subscription.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4bffa13a..ac6047cf 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "concurrently": "^9.0.0", "docsify-cli": "^4.4.3", "eslint": "^9.9.1", - "fastify": "^5.0.0-alpha.4", + "fastify": "^5.0.0", "graphql": "^16.0.0", "graphql-tag": "^2.12.6", "graphql-ws": "^5.11.2", 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]))