From 2892a4205f1edf347a83a493e62c62e9aacd5ad1 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. --- 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 });