@@ -15,12 +15,17 @@ describe('FileSaltStore', () => {
1515    } ) ; 
1616
1717    afterEach ( async  ( )  =>  { 
18-         // Clean up test file 
18+         // Clean up test file and lock directory  
1919        try  { 
2020            await  fs . unlink ( testFilePath ) ; 
2121        }  catch  { 
2222            // Ignore errors if file doesn't exist 
2323        } 
24+         try  { 
25+             await  fs . rm ( `${ testFilePath }  ,  { recursive : true ,  force : true } ) ; 
26+         }  catch  { 
27+             // Ignore errors if lock directory doesn't exist 
28+         } 
2429    } ) ; 
2530
2631    describe ( 'set' ,  ( )  =>  { 
@@ -542,6 +547,7 @@ describe('FileSaltStore', () => {
542547
543548            // Clean up 
544549            await  fs . rm ( path . dirname ( nestedPath ) ,  { recursive : true ,  force : true } ) ; 
550+             await  fs . rm ( `${ nestedPath }  ,  { recursive : true ,  force : true } ) . catch ( ( )  =>  { } ) ; 
545551        } ) ; 
546552
547553        it ( 'should handle concurrent writes correctly' ,  async  ( )  =>  { 
@@ -630,6 +636,8 @@ describe('FileSaltStore', () => {
630636            // Clean up 
631637            await  fs . unlink ( store1Path ) ; 
632638            await  fs . unlink ( store2Path ) ; 
639+             await  fs . rm ( `${ store1Path }  ,  { recursive : true ,  force : true } ) . catch ( ( )  =>  { } ) ; 
640+             await  fs . rm ( `${ store2Path }  ,  { recursive : true ,  force : true } ) . catch ( ( )  =>  { } ) ; 
633641        } ) ; 
634642
635643        it ( 'should work correctly with multiple instances using same file' ,  async  ( )  =>  { 
0 commit comments