diff options
author | Rich Trott <rtrott@gmail.com> | 2017-12-24 22:38:11 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-01-31 22:11:07 -0800 |
commit | bf6ce47259ebfe9f6349c223cc1735726aee062d (patch) | |
tree | 2f40f8e9618a253862cf1f0953992c8c16b56772 /test/parallel/test-zlib-from-gzip.js | |
parent | 6035beea93e16f6d923201a33a541f6d724f00d6 (diff) | |
download | android-node-v8-bf6ce47259ebfe9f6349c223cc1735726aee062d.tar.gz android-node-v8-bf6ce47259ebfe9f6349c223cc1735726aee062d.tar.bz2 android-node-v8-bf6ce47259ebfe9f6349c223cc1735726aee062d.zip |
test: move tmpdir to submodule of common
Move tmpdir functionality to its own module (common/tmpdir).
PR-URL: https://github.com/nodejs/node/pull/17856
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/parallel/test-zlib-from-gzip.js')
-rw-r--r-- | test/parallel/test-zlib-from-gzip.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-zlib-from-gzip.js b/test/parallel/test-zlib-from-gzip.js index f62dd10f32..99c3f1757e 100644 --- a/test/parallel/test-zlib-from-gzip.js +++ b/test/parallel/test-zlib-from-gzip.js @@ -29,7 +29,8 @@ const zlib = require('zlib'); const path = require('path'); const fixtures = require('../common/fixtures'); -common.refreshTmpDir(); +const tmpdir = require('../common/tmpdir'); +tmpdir.refresh(); const gunzip = zlib.createGunzip(); @@ -37,7 +38,7 @@ const fs = require('fs'); const fixture = fixtures.path('person.jpg.gz'); const unzippedFixture = fixtures.path('person.jpg'); -const outputFile = path.resolve(common.tmpDir, 'person.jpg'); +const outputFile = path.resolve(tmpdir.path, 'person.jpg'); const expect = fs.readFileSync(unzippedFixture); const inp = fs.createReadStream(fixture); const out = fs.createWriteStream(outputFile); |