diff options
author | João Reis <reis@janeasystems.com> | 2019-07-30 16:55:15 +0100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-10 19:21:35 -0700 |
commit | 0376b5b7baf627b112915183edf9e1ea2d3856b7 (patch) | |
tree | cc03285eef5bba8a7f2e80498e43476561cd15a2 /test/benchmark | |
parent | 3eea43af074e129963a3398dc91ce22a589f8a13 (diff) | |
download | node-new-0376b5b7baf627b112915183edf9e1ea2d3856b7.tar.gz |
benchmark: use test/common/tmpdir consistently
Many benchmarks use test/common/tmpdir. This changes 3 benchmarks that
use NODE_TMPDIR to also use test/common/tmpdir.
This is necessary in preparation for the next commit that changes tmpdir
to delete tmpdir.path when the Node.js process exits. Thus, if multiple
benchmarks are run sequentially, the ones that use tmpdir will remove
the directory and the ones changed here would fail because it does not
exist. This happens when running test/benchmark.
Note: to explicitly select a directory for tmpdir, use NODE_TEST_DIR.
PR-URL: https://github.com/nodejs/node/pull/28858
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/benchmark')
-rw-r--r-- | test/benchmark/test-benchmark-fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmark/test-benchmark-fs.js b/test/benchmark/test-benchmark-fs.js index 7ae32fe617..efb2c453bd 100644 --- a/test/benchmark/test-benchmark-fs.js +++ b/test/benchmark/test-benchmark-fs.js @@ -19,4 +19,4 @@ runBenchmark('fs', [ 'filesize=1024', 'dir=.github', 'withFileTypes=false' -], { NODE_TMPDIR: tmpdir.path, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); +], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 }); |