Skip to content

Commit 6dc3c11

Browse files
Trotttargos
authored andcommitted
test: allow short benchmarks for tests
Enable short benchmarks for process and path benchmark tests. These have been observed to fail in CI due to returning with zero operations performed in the allotted time. We have a special environment variable for other benchmark tests that can be set to make that allowable in benchmarks. Set it for path and process. PR-URL: #16097 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent cbbb229 commit 6dc3c11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/parallel/test-benchmark-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ runBenchmark('path',
1111
'pathext=',
1212
'paths=',
1313
'props='
14-
]);
14+
], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

test/parallel/test-benchmark-process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ runBenchmark('process',
99
'millions=0.000001',
1010
'n=1',
1111
'type=raw'
12-
]);
12+
], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 commit comments

Comments
 (0)