Skip to content

Commit

Permalink
test: fix flaky test-benchmark-util
Browse files Browse the repository at this point in the history
Allow for zero iterations on benchmarks with a short duration.

PR-URL: #17473
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 12, 2017
1 parent 6c97f7f commit 50f120e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-benchmark-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ runBenchmark('util',
'n=1',
'option=none',
'type=',
'version=native']);
'version=native'],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 comments on commit 50f120e

Please sign in to comment.