From f25bab56069ad1667a48102e06d23cdc9dd42d95 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 27 Dec 2017 11:42:15 -0800 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Weijia Wang --- test/parallel/test-benchmark-fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-benchmark-fs.js b/test/parallel/test-benchmark-fs.js index bf6bf3580d50cd..e960482a636e33 100644 --- a/test/parallel/test-benchmark-fs.js +++ b/test/parallel/test-benchmark-fs.js @@ -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 });