Skip to content

Commit 619cbc4

Browse files
TrottMylesBorins
authored andcommitted
test: fix flaky test-benchmark-events
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: #17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d8018bc commit 619cbc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-benchmark-events.js

+3-1
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)