diff options
author | Rich Trott <rtrott@gmail.com> | 2017-12-27 11:42:15 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-12-28 05:54:57 -0800 |
commit | 9c00f071f0cddad4bbd5ab72f9275c187c11c514 (patch) | |
tree | 8f91faf3b3b279d66299d1dd3dcba4b9a1288e9a /test | |
parent | 64129898fecb3c60ec9bdcc015da1eef6afec236 (diff) | |
download | android-node-v8-9c00f071f0cddad4bbd5ab72f9275c187c11c514.tar.gz android-node-v8-9c00f071f0cddad4bbd5ab72f9275c187c11c514.tar.bz2 android-node-v8-9c00f071f0cddad4bbd5ab72f9275c187c11c514.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-benchmark-fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-benchmark-fs.js b/test/parallel/test-benchmark-fs.js index bf6bf3580d..e960482a63 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 }); |