We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a696f10 commit d1cd117Copy full SHA for d1cd117
test/pummel/test-fs-largefile.js
@@ -34,7 +34,7 @@ const fd = fs.openSync(filepath, 'w+');
34
const offset = 5 * 1024 * 1024 * 1024; // 5GB
35
const message = 'Large File';
36
37
-fs.truncateSync(fd, offset);
+fs.ftruncateSync(fd, offset);
38
assert.strictEqual(fs.statSync(filepath).size, offset);
39
const writeBuf = Buffer.from(message);
40
fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset);
0 commit comments