summaryrefslogtreecommitdiff
path: root/test/parallel/test-internal-fs-syncwritestream.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-internal-fs-syncwritestream.js')
-rw-r--r--test/parallel/test-internal-fs-syncwritestream.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-internal-fs-syncwritestream.js b/test/parallel/test-internal-fs-syncwritestream.js
index bf4776550b..383b70512c 100644
--- a/test/parallel/test-internal-fs-syncwritestream.js
+++ b/test/parallel/test-internal-fs-syncwritestream.js
@@ -38,6 +38,8 @@ const filename = path.join(tmpdir.path, 'sync-write-stream.txt');
assert.strictEqual(stream._write(chunk, null, common.mustCall(1)), true);
assert.strictEqual(fs.readFileSync(filename).equals(chunk), true);
+
+ fs.closeSync(fd);
}
// Verify that the stream will unset the fd after destroy().