Skip to content

Commit

Permalink
test: fix flaky test-benchmark-events
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 12, 2017
1 parent d8018bc commit 619cbc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-benchmark-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ require('../common');

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

runBenchmark('events', ['n=1']);
runBenchmark('events',
['argc=0', 'listeners=1', 'n=1'],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 comments on commit 619cbc4

Please sign in to comment.