@@ -1832,21 +1832,21 @@ describe('e2e', function () {
18321832 const globalConfig = path . join ( homedir , 'globalconfig.conf' ) ;
18331833 await fs . writeFile (
18341834 globalConfig ,
1835- // Set logRetentionGB to 40 KB and we will create prior 10 log files, 10 KB each
1835+ // Set logRetentionGB to 4 MB and we will create prior 10 log files, 1 MB each
18361836 `mongosh:\n logLocation: ${ JSON . stringify (
18371837 customLogDir . path
1838- ) } \n logRetentionGB: ${ 40 / 1024 / 1024 } `
1838+ ) } \n logRetentionGB: ${ 4 / 1024 } `
18391839 ) ;
18401840 const paths : string [ ] = [ ] ;
18411841 const offset = Math . floor ( Date . now ( ) / 1000 ) ;
18421842
1843- // Create 10 log files, 10kb each
1843+ // Create 10 log files, around 1 mb each
18441844 for ( let i = 9 ; i >= 0 ; i -- ) {
18451845 const filename = path . join (
18461846 customLogDir . path ,
18471847 ObjectId . createFromTime ( offset - i ) . toHexString ( ) + '_log'
18481848 ) ;
1849- await fs . writeFile ( filename , '0' . repeat ( 1024 * 10 ) ) ;
1849+ await fs . writeFile ( filename , '0' . repeat ( 1024 * 1024 ) ) ;
18501850 paths . push ( filename ) ;
18511851 }
18521852
@@ -1868,10 +1868,10 @@ describe('e2e', function () {
18681868
18691869 expect (
18701870 await shell . executeLine ( 'config.get("logRetentionGB")' )
1871- ) . contains ( `${ 40 / 1024 / 1024 } ` ) ;
1871+ ) . contains ( `${ 4 / 1024 } ` ) ;
18721872
18731873 // Expect 6 files to be deleted and 4 to remain
1874- // (including the new log file which should be <10 kb )
1874+ // (including the new log file which should be <1 MB )
18751875 expect ( await getFilesState ( paths ) ) . to . equal ( '00000001111' ) ;
18761876 } ) ;
18771877 } ) ;
0 commit comments