diff options
author | João Reis <reis@janeasystems.com> | 2019-07-30 07:50:21 +0100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-10 19:22:11 -0700 |
commit | 8ef68e66d0465441a79a5dae22e480bf0d83ed25 (patch) | |
tree | 903d3a6fb4172e179717d8bc478729f621201577 /test/parallel/test-fs-write-stream-throw-type-error.js | |
parent | 0376b5b7baf627b112915183edf9e1ea2d3856b7 (diff) | |
download | android-node-v8-8ef68e66d0465441a79a5dae22e480bf0d83ed25.tar.gz android-node-v8-8ef68e66d0465441a79a5dae22e480bf0d83ed25.tar.bz2 android-node-v8-8ef68e66d0465441a79a5dae22e480bf0d83ed25.zip |
test: clean tmpdir on process exit
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/parallel/test-fs-write-stream-throw-type-error.js')
-rw-r--r-- | test/parallel/test-fs-write-stream-throw-type-error.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-fs-write-stream-throw-type-error.js b/test/parallel/test-fs-write-stream-throw-type-error.js index c80f647b3d..9a3d1cf16d 100644 --- a/test/parallel/test-fs-write-stream-throw-type-error.js +++ b/test/parallel/test-fs-write-stream-throw-type-error.js @@ -9,10 +9,10 @@ const example = path.join(tmpdir.path, 'dummy'); tmpdir.refresh(); // Should not throw. -fs.createWriteStream(example, undefined); -fs.createWriteStream(example, null); -fs.createWriteStream(example, 'utf8'); -fs.createWriteStream(example, { encoding: 'utf8' }); +fs.createWriteStream(example, undefined).end(); +fs.createWriteStream(example, null).end(); +fs.createWriteStream(example, 'utf8').end(); +fs.createWriteStream(example, { encoding: 'utf8' }).end(); const createWriteStreamErr = (path, opt) => { common.expectsError( |