Skip to content

Commit 956a473

Browse files
TrottFishrock123
authored andcommitted
test: move test-fs-largefile to pummel
test-fs-largefile was disabled. It was fixed in bbf74fb 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: #14338 Refs: bbf74fb Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9b104b4 commit 956a473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/disabled/test-fs-largefile.js test/pummel/test-fs-largefile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ const message = 'Large File';
3535

3636
fs.truncateSync(fd, offset);
3737
assert.strictEqual(fs.statSync(filepath).size, offset);
38-
var writeBuf = Buffer.from(message);
38+
const writeBuf = Buffer.from(message);
3939
fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset);
40-
var readBuf = Buffer.allocUnsafe(writeBuf.length);
40+
const readBuf = Buffer.allocUnsafe(writeBuf.length);
4141
fs.readSync(fd, readBuf, 0, readBuf.length, offset);
4242
assert.strictEqual(readBuf.toString(), message);
4343
fs.readSync(fd, readBuf, 0, 1, 0);

0 commit comments

Comments
 (0)