aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-promises-writefile-with-fd.js
diff options
context:
space:
mode:
authorJoão Reis <reis@janeasystems.com>2019-07-30 07:50:21 +0100
committerRich Trott <rtrott@gmail.com>2019-08-10 19:22:11 -0700
commit8ef68e66d0465441a79a5dae22e480bf0d83ed25 (patch)
tree903d3a6fb4172e179717d8bc478729f621201577 /test/parallel/test-fs-promises-writefile-with-fd.js
parent0376b5b7baf627b112915183edf9e1ea2d3856b7 (diff)
downloadandroid-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-writefile-with-fd.js')
-rw-r--r--test/parallel/test-fs-promises-writefile-with-fd.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-fs-promises-writefile-with-fd.js b/test/parallel/test-fs-promises-writefile-with-fd.js
index a4cc31df7f..446f9b6d8a 100644
--- a/test/parallel/test-fs-promises-writefile-with-fd.js
+++ b/test/parallel/test-fs-promises-writefile-with-fd.js
@@ -29,6 +29,8 @@ async function writeFileTest() {
/* New content should be written at position five, instead of zero. */
assert.deepStrictEqual(readFileSync(fn).toString(), 'HelloWorld');
+
+ await handle.close();
}