@@ -199,15 +199,15 @@ describe("Repo", () => {
199199 } ) ;
200200
201201 afterAll ( async ( ) => {
202- await rm ( repoDir , { recursive : true , force : true } ) ;
202+ await rm ( repoDir , { recursive : true , force : true , maxRetries : 3 } ) ;
203203 } ) ;
204204
205205 it ( "open rejects non-repo directory" , async ( ) => {
206206 const nonRepo = await mkdtemp ( join ( tmpdir ( ) , "kensai-git-test-" ) ) ;
207207 try {
208208 await expect ( Repo . open ( nonRepo ) ) . rejects . toThrow ( GitError ) ;
209209 } finally {
210- await rm ( nonRepo , { recursive : true , force : true } ) ;
210+ await rm ( nonRepo , { recursive : true , force : true , maxRetries : 3 } ) ;
211211 }
212212 } ) ;
213213
@@ -314,7 +314,7 @@ describe("Repo with binary files", () => {
314314 } ) ;
315315
316316 afterAll ( async ( ) => {
317- await rm ( repoDir , { recursive : true , force : true } ) ;
317+ await rm ( repoDir , { recursive : true , force : true , maxRetries : 3 } ) ;
318318 } ) ;
319319
320320 it ( "changedFiles reports binary with dash counts" , async ( ) => {
@@ -351,7 +351,7 @@ describe("Repo log with multi-line messages", () => {
351351 } ) ;
352352
353353 afterAll ( async ( ) => {
354- await rm ( repoDir , { recursive : true , force : true } ) ;
354+ await rm ( repoDir , { recursive : true , force : true , maxRetries : 3 } ) ;
355355 } ) ;
356356
357357 it ( "parses subject and body separately" , async ( ) => {
0 commit comments