Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: close and unlink file
  • Loading branch information
vinimdocarmo authored Jan 24, 2017
commit a9cb100359a24362759e0398898e2b8600fa2390
3 changes: 3 additions & 0 deletions test/parallel/test-fs-truncate-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ const fd = fs.openSync(filename, 'r+');

fs.truncateSync(fd, 5);
assert(fs.readFileSync(fd).equals(Buffer.from('hello')));

fs.closeSync(fd);
fs.unlinkSync(filename);