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 <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • 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.