File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -301,20 +301,13 @@ export const callAsyncCircusFn = (
301
301
// Otherwise this test is synchronous, and if it didn't throw it means
302
302
// it passed.
303
303
resolve ( ) ;
304
- } )
305
- . then ( ( ) => {
306
- completed = true ;
307
- // If timeout is not cleared/unrefed the node process won't exit until
308
- // it's resolved.
309
- timeoutID . unref ?.( ) ;
310
- clearTimeout ( timeoutID ) ;
311
- } )
312
- . catch ( error => {
313
- completed = true ;
314
- timeoutID . unref ?.( ) ;
315
- clearTimeout ( timeoutID ) ;
316
- throw error ;
317
- } ) ;
304
+ } ) . finally ( ( ) => {
305
+ completed = true ;
306
+ // If timeout is not cleared/unrefed the node process won't exit until
307
+ // it's resolved.
308
+ timeoutID . unref ?.( ) ;
309
+ clearTimeout ( timeoutID ) ;
310
+ } ) ;
318
311
} ;
319
312
320
313
export const getTestDuration = ( test : Circus . TestEntry ) : number | null => {
You can’t perform that action at this time.
0 commit comments