Skip to content

Commit 50f120e

Browse files
TrottMylesBorins
authored andcommitted
test: fix flaky test-benchmark-util
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]>
1 parent 6c97f7f commit 50f120e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-benchmark-util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ runBenchmark('util',
1111
'n=1',
1212
'option=none',
1313
'type=',
14-
'version=native']);
14+
'version=native'],
15+
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 commit comments

Comments
 (0)