@@ -108,7 +108,9 @@ describe("runWithRetry Tests", () => {
108108 } ;
109109 try {
110110 success = await runWithFastSetTimeout ( async ( ) => runWithRetry ( api , "test" , logger , { } ) ) ;
111- } catch ( error ) { }
111+ } catch ( error ) {
112+ // Ignore the error
113+ }
112114 assert . strictEqual ( retryTimes , 0 , "Should retry" ) ;
113115 assert . strictEqual ( success , true , "Should succeed as retry should be successful" ) ;
114116 } ) ;
@@ -128,7 +130,9 @@ describe("runWithRetry Tests", () => {
128130 try {
129131 success = await runWithFastSetTimeout ( async ( ) => runWithRetry ( api , "test" , logger , { } ) ) ;
130132 assert . fail ( "Should not succeed" ) ;
131- } catch ( error ) { }
133+ } catch ( error ) {
134+ // Ignore the error
135+ }
132136 assert . strictEqual ( retryTimes , 0 , "Should not retry" ) ;
133137 assert . strictEqual ( success , false , "Should not succeed as canRetry was not set" ) ;
134138 } ) ;
@@ -147,7 +151,9 @@ describe("runWithRetry Tests", () => {
147151 try {
148152 success = await runWithFastSetTimeout ( async ( ) => runWithRetry ( api , "test" , logger , { } ) ) ;
149153 assert . fail ( "Should not succeed" ) ;
150- } catch ( error ) { }
154+ } catch ( error ) {
155+ // Ignore the error
156+ }
151157 assert . strictEqual ( retryTimes , 0 , "Should not retry" ) ;
152158 assert . strictEqual ( success , false , "Should not succeed as canRetry was not set" ) ;
153159 } ) ;
@@ -173,7 +179,9 @@ describe("runWithRetry Tests", () => {
173179 } ) ,
174180 ) ;
175181 assert . fail ( "Should not succeed" ) ;
176- } catch ( error ) { }
182+ } catch ( error ) {
183+ // Ignore the error
184+ }
177185 assert . strictEqual ( retryTimes , 0 , "Should not retry" ) ;
178186 assert . strictEqual ( success , false , "Should not succeed as retrying was disabled" ) ;
179187 } ) ;
0 commit comments