From 8435cb10f93e149c8956f815db9e5dd59789a1d9 Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Tue, 17 Jun 2025 09:13:38 +0200 Subject: [PATCH] fix: close fastify instance (#6177) * chore: removed simple-get from secure with fallback test * fix: after --------- Co-authored-by: Manuel Spigolon Co-authored-by: Carlos Fuentes --- test/http2/secure-with-fallback.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/http2/secure-with-fallback.test.js b/test/http2/secure-with-fallback.test.js index 651f3b28da9..25566389226 100644 --- a/test/http2/secure-with-fallback.test.js +++ b/test/http2/secure-with-fallback.test.js @@ -39,7 +39,7 @@ test('secure with fallback', async (t) => { throw new Error('kaboom') }) - t.after(() => { fastify.close() }) + t.after(() => fastify.close()) const fastifyServer = await fastify.listen({ port: 0 }) @@ -80,6 +80,7 @@ test('secure with fallback', async (t) => { await t.test('http1 get request', async t => { t.plan(4) + const result = await fetch(fastifyServer, { dispatcher: new Agent({ connect: { @@ -97,6 +98,7 @@ test('secure with fallback', async (t) => { await t.test('http1 get error', async t => { t.plan(2) + const result = await fetch(`${fastifyServer}/error`, { dispatcher: new Agent({ connect: {