Skip to content

Commit f25bab5

Browse files
TrottMylesBorins
authored andcommitted
test: fix flaky test-benchmark-fs
Some benchmarks may return 0 operations with the new very short duration provided by the test program. Set environment variable to allow that. PR-URL: #17885 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Weijia Wang <[email protected]>
1 parent 2c9dab3 commit f25bab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-benchmark-fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ runBenchmark('fs', [
1616
'statSyncType=fstatSync',
1717
'encodingType=buf',
1818
'filesize=1024'
19-
], { NODE_TMPDIR: common.tmpDir });
19+
], { NODE_TMPDIR: common.tmpDir, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

0 commit comments

Comments
 (0)