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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
  • Loading branch information
Trott authored and gibfahn committed Jan 24, 2018
1 parent 7eb0215 commit b69c710
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 b69c710

Please sign in to comment.