mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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: https://github.com/nodejs/node/pull/17885 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com>
This commit is contained in:
1 parent
7eb0215a97
commit
b69c710dec
1 file changed
+1
-1
@@ -16,4 +16,4 @@ runBenchmark('fs', [
|
||||
'statSyncType=fstatSync',
|
||||
'encodingType=buf',
|
||||
'filesize=1024'
|
||||
], { NODE_TMPDIR: common.tmpDir });
|
||||
], { NODE_TMPDIR: common.tmpDir, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|
||||
Reference in new issue
Block a user