test: reduce the number of requests and parsers

The maximum number of parsers 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
PR-URL: https://github.com/nodejs/node/pull/50240
Backport-PR-URL: https://github.com/nodejs/node/pull/52384
Fixes: https://github.com/nodejs/node/issues/49564
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
This commit is contained in:
Luigi Pinca authored and Richard Lau committed 2024-04-17 12:07:31 +00:00
1 parent 5186e453d9
commit 5cec2efc31
1 file changed
+2
@@ -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);