File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const kIoMaxLength = 2 ** 31 - 1;
77// Note: This is different from kReadFileBufferLength used for non-promisified
88// fs.readFile.
99const kReadFileMaxChunkSize = 2 ** 14 ;
10- const kWriteFileMaxChunkSize = 2 ** 14 ;
10+ const kWriteFileMaxChunkSize = 512 * 1024 ;
1111
1212const {
1313 ArrayPrototypePush,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async function validateWriteFile() {
3030async function doWriteAndCancel ( ) {
3131 const filePathForHandle = path . resolve ( tmpDir , 'dogs-running.txt' ) ;
3232 const fileHandle = await open ( filePathForHandle , 'w+' ) ;
33- const buffer = Buffer . from ( 'dogs running' . repeat ( 10000 ) , 'utf8' ) ;
33+ const buffer = Buffer . from ( 'dogs running' . repeat ( 512 * 1024 ) , 'utf8' ) ;
3434 const controller = new AbortController ( ) ;
3535 const { signal } = controller ;
3636 process . nextTick ( ( ) => controller . abort ( ) ) ;
You can’t perform that action at this time.
0 commit comments