From 9d2685b77fc93d8b9ccac1c932c598757626d458 Mon Sep 17 00:00:00 2001 From: KaKa Date: Fri, 29 Mar 2024 19:07:30 +0800 Subject: [PATCH] fixup --- test/issue-288.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/issue-288.test.js b/test/issue-288.test.js index b4b6898..c3d4462 100644 --- a/test/issue-288.test.js +++ b/test/issue-288.test.js @@ -3,7 +3,12 @@ const { test } = require('tap') const Fastify = require('fastify') const fastifyCompress = require('..') -const { fetch } = require('undici') +const { fetch, setGlobalDispatcher, Agent } = require('undici') + +setGlobalDispatcher(new Agent({ + keepAliveTimeout: 10, + keepAliveMaxTimeout: 10 +})) test('should not corrupt the file content', async (t) => { // provide 2 byte unicode content