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-promises-file-handle-append-file.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-promises-file-handle-append-file.js')
-rw-r--r-- | test/parallel/test-fs-promises-file-handle-append-file.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-fs-promises-file-handle-append-file.js b/test/parallel/test-fs-promises-file-handle-append-file.js index f9abef359e..90bb6e3925 100644 --- a/test/parallel/test-fs-promises-file-handle-append-file.js +++ b/test/parallel/test-fs-promises-file-handle-append-file.js @@ -22,6 +22,8 @@ async function validateAppendBuffer() { await fileHandle.appendFile(buffer); const appendedFileData = fs.readFileSync(filePath); assert.deepStrictEqual(appendedFileData, buffer); + + await fileHandle.close(); } async function validateAppendString() { @@ -33,6 +35,8 @@ async function validateAppendString() { const stringAsBuffer = Buffer.from(string, 'utf8'); const appendedFileData = fs.readFileSync(filePath); assert.deepStrictEqual(appendedFileData, stringAsBuffer); + + await fileHandle.close(); } validateAppendBuffer() |