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 <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
  • 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.