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;
7
7
// Note: This is different from kReadFileBufferLength used for non-promisified
8
8
// fs.readFile.
9
9
const kReadFileMaxChunkSize = 2 ** 14 ;
10
- const kWriteFileMaxChunkSize = 2 ** 14 ;
10
+ const kWriteFileMaxChunkSize = 512 * 1024 ;
11
11
12
12
const {
13
13
ArrayPrototypePush,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async function validateWriteFile() {
30
30
async function doWriteAndCancel ( ) {
31
31
const filePathForHandle = path . resolve ( tmpDir , 'dogs-running.txt' ) ;
32
32
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' ) ;
34
34
const controller = new AbortController ( ) ;
35
35
const { signal } = controller ;
36
36
process . nextTick ( ( ) => controller . abort ( ) ) ;
You can’t perform that action at this time.
0 commit comments