From 1e3b34e0f23e057e0499893a19fdf0af61709c4d Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 18 Oct 2023 14:34:10 +0200 Subject: [PATCH] test: reduce the number of requests and parsers The maximum number of parses in the free list is set to 1000. However the test does not need to use this maximum. Reduce it to 50. Refs: https://github.com/nodejs/node/pull/50228#issuecomment-1768293624 --- test/sequential/test-http-regr-gh-2928.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sequential/test-http-regr-gh-2928.js b/test/sequential/test-http-regr-gh-2928.js index 25476e0453c53b..f6a9e1603288a4 100644 --- a/test/sequential/test-http-regr-gh-2928.js +++ b/test/sequential/test-http-regr-gh-2928.js @@ -8,6 +8,8 @@ const httpCommon = require('_http_common'); const { HTTPParser } = require('_http_common'); const net = require('net'); +httpCommon.parsers.max = 50; + const COUNT = httpCommon.parsers.max + 1; const parsers = new Array(COUNT);