Skip to content

Commit

Permalink
Update test/parallel/test-internal-fs-syncwritestream.js
Browse files Browse the repository at this point in the history
Co-authored-by: Luigi Pinca <[email protected]>
  • Loading branch information
sungpaks and lpinca committed Sep 7, 2024
1 parent 5ba7af2 commit 5406ada
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/parallel/test-internal-fs-syncwritestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,6 @@ const filename = tmpdir.resolve('sync-write-stream.txt');
assert.strictEqual(stream.fd, null);
}

// Verify behavior of destroy() when already destroy()ed
{
const fd = fs.openSync(filename, 'w');
const stream = new SyncWriteStream(fd);

stream.on('close', common.mustCall());
assert.strictEqual(stream.destroy(), stream);
assert.strictEqual(stream.destroy(), stream);
}

// Verify that the file is not closed when autoClose=false
{
const fd = fs.openSync(filename, 'w');
Expand Down

0 comments on commit 5406ada

Please sign in to comment.