mirror of https://github.com/nodejs/node.git
test: move test-fs-largefile to pummel
test-fs-largefile was disabled. It was fixed inpull/14388/headbbf74fb
but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. PR-URL: https://github.com/nodejs/node/pull/14338 Refs:bbf74fb87b
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
parent
462b58e581
commit
9d9c9c1e77
|
@ -35,9 +35,9 @@ const message = 'Large File';
|
|||
|
||||
fs.truncateSync(fd, offset);
|
||||
assert.strictEqual(fs.statSync(filepath).size, offset);
|
||||
var writeBuf = Buffer.from(message);
|
||||
const writeBuf = Buffer.from(message);
|
||||
fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset);
|
||||
var readBuf = Buffer.allocUnsafe(writeBuf.length);
|
||||
const readBuf = Buffer.allocUnsafe(writeBuf.length);
|
||||
fs.readSync(fd, readBuf, 0, readBuf.length, offset);
|
||||
assert.strictEqual(readBuf.toString(), message);
|
||||
fs.readSync(fd, readBuf, 0, 1, 0);
|
Loading…
Reference in New Issue