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: nodejs#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 committed Dec 7, 2017
1 parent d4cd8c2 commit 6c0c60c
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 6c0c60c

Please sign in to comment.