Skip to content

Commit 978bc50

Browse files
committed
test: move test-fs-largefile to sequential
test-fs-largefile is in the pummel directory because it creates a large file, but the large file (due to the way it is created) does not consume much disk space and runs quickly on Raspberry Pi devices and everything else. Move the test to sequential.
1 parent 3240435 commit 978bc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const fd = fs.openSync(filepath, 'w+');
3434
const offset = 5 * 1024 * 1024 * 1024; // 5GB
3535
const message = 'Large File';
3636

37-
fs.truncateSync(fd, offset);
37+
fs.ftruncateSync(fd, offset);
3838
assert.strictEqual(fs.statSync(filepath).size, offset);
3939
const writeBuf = Buffer.from(message);
4040
fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset);

0 commit comments

Comments
 (0)