File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ Creates a directory with optional mode and recursion (create all intermediate di
598598
599599- **Parameters:**
600600 - `path` _(string)_ - The path where the directory should be created.
601- - `mode` _(number|function)_ (Optional, default: `0o666 `) - The directory permissions.
601+ - `mode` _(number|function)_ (Optional, default: `0o777 `) - The directory permissions.
602602 - `recursive` _(boolean|function)_ (Optional, default: `false`) - Whether to create directories recursively.
603603 - `callback` _(function)_ (Optional) - Callback to execute once directory creation is done. Called with an error as the first argument on failure, and null on success.
604604
Original file line number Diff line number Diff line change @@ -580,19 +580,22 @@ function _setupTests(testType) {
580580 const filePath = `${ testPath } /browserWrite.txt` ;
581581 await _testLargeFileRW ( filePath , sizeMB * 1024 * 1024 , true ) ; // Roughly 4MB considering 1 byte per char
582582 } ) . timeout ( 60000 ) ;
583+ }
583584
584- it ( `Should phoenix ${ testType } read and write 1000 Binary files of size ${ sizeMB } KB serially` , async function ( ) {
585+ let sizeKBs = [ 1 , 4 ] ;
586+ for ( let sizeKB of sizeKBs ) {
587+ it ( `Should phoenix ${ testType } read and write 1000 Binary files of size ${ sizeKB } KB serially` , async function ( ) {
585588 for ( let j = 0 ; j < 1000 ; j ++ ) {
586589 const filePath = `${ testPath } /browserWrite.txt` ;
587- await _testLargeFileRW ( filePath , sizeMB * 1024 , true ) ; // Roughly 4MB considering 1 byte per char
590+ await _testLargeFileRW ( filePath , sizeKB * 1024 , true ) ; // Roughly 4MB considering 1 byte per char
588591 }
589592 } ) . timeout ( 120000 ) ;
590593
591- it ( `Should phoenix ${ testType } read and write 1000 Binary files of size ${ sizeMB } KB in parallel` , async function ( ) {
594+ it ( `Should phoenix ${ testType } read and write 1000 Binary files of size ${ sizeKB } KB in parallel` , async function ( ) {
592595 let fileVerifyPromises = [ ] ;
593596 for ( let j = 0 ; j < 1000 ; j ++ ) {
594597 const filePath = `${ testPath } /browserWrite_${ j } .txt` ;
595- fileVerifyPromises . push ( _testLargeFileRW ( filePath , sizeMB * 1024 , true ) ) ; // Roughly 4MB considering 1 byte per char
598+ fileVerifyPromises . push ( _testLargeFileRW ( filePath , sizeKB * 1024 , true ) ) ; // Roughly 4MB considering 1 byte per char
596599 }
597600 await Promise . all ( fileVerifyPromises ) ;
598601 } ) . timeout ( 120000 ) ;
You can’t perform that action at this time.
0 commit comments