Skip to content

Commit

Permalink
test: fix flaky test-benchmark-fs
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Trott authored and MylesBorins committed Jan 8, 2018
1 parent 8bf04c0 commit 3d5be78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-benchmark-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

0 comments on commit 3d5be78

Please sign in to comment.