Skip to content

Commit

Permalink
test: reduce the number of requests and parsers
Browse files Browse the repository at this point in the history
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: #50228 (comment)
  • Loading branch information
lpinca committed Oct 18, 2023
1 parent f971106 commit b5659fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sequential/test-http-regr-gh-2928.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5659fb

Please sign in to comment.