diff options
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() |