Skip to content

Commit

Permalink
test: change function to write to file
Browse files Browse the repository at this point in the history
Co-authored-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
emilsivervik and RaisinTen committed Jan 25, 2021
1 parent 622ed80 commit bdda713
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-fs-promises-file-handle-readFile.js
Expand Up @@ -97,8 +97,7 @@ async function doReadAndCancel() {
const kIoMaxLength = 2 ** 31 - 1;

const newFile = path.resolve(tmpDir, 'dogs-running3.txt');
const buffer = Buffer.alloc(kIoMaxLength + 1);
await writeFile(newFile, buffer);
await truncate(newFile, kIoMaxLength + 1);

const fileHandle = await open(newFile, 'r');

Expand Down

0 comments on commit bdda713

Please sign in to comment.