Skip to content

Commit

Permalink
test: move test-fs-largefile to sequential
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Trott committed Apr 28, 2021
1 parent 3240435 commit 978bc50
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ const fd = fs.openSync(filepath, 'w+');
const offset = 5 * 1024 * 1024 * 1024; // 5GB
const message = 'Large File';

fs.truncateSync(fd, offset);
fs.ftruncateSync(fd, offset);
assert.strictEqual(fs.statSync(filepath).size, offset);
const writeBuf = Buffer.from(message);
fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset);
Expand Down

0 comments on commit 978bc50

Please sign in to comment.