Skip to content

Commit

Permalink
test: fix flaky test-benchmark-querystring
Browse files Browse the repository at this point in the history
Allow zero iterations for short benchmark in test.

PR-URL: #17517
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 12, 2017
1 parent 89d31ee commit 7d3a843
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/parallel/test-benchmark-querystring.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ require('../common');

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

runBenchmark('querystring', [
'n=1',
'input="there is nothing to unescape here"',
'type=noencode'
]);
runBenchmark('querystring',
[ 'n=1',
'input="there is nothing to unescape here"',
'type=noencode'
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 comments on commit 7d3a843

Please sign in to comment.