@@ -1849,21 +1849,21 @@ describe('e2e', function () {
18491849 const globalConfig = path . join ( homedir , 'globalconfig.conf' ) ;
18501850 await fs . writeFile (
18511851 globalConfig ,
1852- // Set logRetentionGB to 40 KB and we will create prior 10 log files, 10 KB each
1852+ // Set logRetentionGB to 4 MB and we will create prior 10 log files, 1 MB each
18531853 `mongosh:\n logLocation: ${ JSON . stringify (
18541854 customLogDir . path
1855- ) } \n logRetentionGB: ${ 40 / 1024 / 1024 } `
1855+ ) } \n logRetentionGB: ${ 4 / 1024 } `
18561856 ) ;
18571857 const paths : string [ ] = [ ] ;
18581858 const offset = Math . floor ( Date . now ( ) / 1000 ) ;
18591859
1860- // Create 10 log files, 10kb each
1860+ // Create 10 log files, around 1 mb each
18611861 for ( let i = 9 ; i >= 0 ; i -- ) {
18621862 const filename = path . join (
18631863 customLogDir . path ,
18641864 ObjectId . createFromTime ( offset - i ) . toHexString ( ) + '_log'
18651865 ) ;
1866- await fs . writeFile ( filename , '0' . repeat ( 1024 * 10 ) ) ;
1866+ await fs . writeFile ( filename , '0' . repeat ( 1024 * 1024 ) ) ;
18671867 paths . push ( filename ) ;
18681868 }
18691869
@@ -1888,10 +1888,10 @@ describe('e2e', function () {
18881888
18891889 expect (
18901890 await shell . executeLine ( 'config.get("logRetentionGB")' )
1891- ) . contains ( `${ 40 / 1024 / 1024 } ` ) ;
1891+ ) . contains ( `${ 4 / 1024 } ` ) ;
18921892
18931893 // Expect 6 files to be deleted and 4 to remain
1894- // (including the new log file which should be <10 kb )
1894+ // (including the new log file which should be <1 MB )
18951895 expect ( await getFilesState ( paths ) ) . to . equal ( '00000001111' ) ;
18961896 } ) ;
18971897 } ) ;
0 commit comments