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 gibfahn committed Dec 20, 2017
1 parent 2c327c6 commit e442dfb
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 e442dfb

Please sign in to comment.