@@ -288,7 +288,7 @@ describe('WriteAheadLogFile', () => {
288288 expect ( read ( '/test/a.log' ) ) . toBe ( 'a\nb\n' ) ;
289289 } ) ;
290290
291- it ( 'repacks with decode errors using tolerant codec' , ( ) => {
291+ it ( 'repacks without decode errors using tolerant codec' , ( ) => {
292292 vol . mkdirSync ( '/test' , { recursive : true } ) ;
293293 write ( '/test/a.log' , 'ok\nbad\n' ) ;
294294
@@ -301,7 +301,7 @@ describe('WriteAheadLogFile', () => {
301301 } ) ;
302302
303303 wal ( '/test/a.log' , tolerantCodec ) . repack ( ) ;
304- expect ( read ( '/test/a.log' ) ) . toBe ( 'ok\nbad\ n' ) ;
304+ expect ( read ( '/test/a.log' ) ) . toBe ( 'ok\n' ) ;
305305 } ) ;
306306
307307 it ( 'logs decode errors during content recovery' , ( ) => {
@@ -323,7 +323,7 @@ describe('WriteAheadLogFile', () => {
323323 expect ( result . records ) . toEqual ( [ 'good' , 'good' ] ) ;
324324 } ) ;
325325
326- it ( 'repacks with invalid entries and logs warning' , ( ) => {
326+ it ( 'repacks with without invalid entries and logs warning' , ( ) => {
327327 const consoleLogSpy = vi . spyOn ( console , 'log' ) . mockImplementation ( ( ) => { } ) ;
328328
329329 vol . mkdirSync ( '/test' , { recursive : true } ) ;
@@ -342,7 +342,7 @@ describe('WriteAheadLogFile', () => {
342342 expect ( consoleLogSpy ) . toHaveBeenCalledWith (
343343 'Found invalid entries during WAL repack' ,
344344 ) ;
345- expect ( read ( '/test/a.log' ) ) . toBe ( 'ok\nbad\ n' ) ;
345+ expect ( read ( '/test/a.log' ) ) . toBe ( 'ok\n' ) ;
346346
347347 consoleLogSpy . mockRestore ( ) ;
348348 } ) ;
0 commit comments