Skip to content

Commit 394ace6

Browse files
committed
test: fix flaky test-benchmark-events
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark.
1 parent 591a24b commit 394ace6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-benchmark-events.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ require('../common');
44

55
const runBenchmark = require('../common/benchmark');
66

7-
runBenchmark('events', ['n=1']);
7+
runBenchmark('events',
8+
['argc=0', 'listeners=1', 'n=1'],
9+
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 commit comments

Comments
 (0)