Skip to content

Commit e0b6bc7

Browse files
Trottgibfahn
authored andcommitted
test: fix flaky test-benchmark-querystring
Allow zero iterations for short benchmark in test. PR-URL: #17517 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent d40c581 commit e0b6bc7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/parallel/test-benchmark-querystring.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ require('../common');
44

55
const runBenchmark = require('../common/benchmark');
66

7-
runBenchmark('querystring', [
8-
'n=1',
9-
'input="there is nothing to unescape here"',
10-
'type=noencode'
11-
]);
7+
runBenchmark('querystring',
8+
[ 'n=1',
9+
'input="there is nothing to unescape here"',
10+
'type=noencode'
11+
],
12+
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 commit comments

Comments
 (0)