File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
test/fixtures/test-runner/output Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -302,12 +302,18 @@ describe('describe async throw fails', async () => {
302302describe ( 'timeouts' , ( ) => {
303303 it ( 'timed out async test' , { timeout : 5 } , async ( ) => {
304304 return new Promise ( ( resolve ) => {
305- setTimeout ( resolve , 100 ) ;
305+ setTimeout ( ( ) => {
306+ // Empty timer so the process doesn't exit before the timeout triggers.
307+ } , 5 ) ;
308+ setTimeout ( resolve , 30_000_000 ) . unref ( ) ;
306309 } ) ;
307310 } ) ;
308311
309312 it ( 'timed out callback test' , { timeout : 5 } , ( t , done ) => {
310- setTimeout ( done , 100 ) ;
313+ setTimeout ( ( ) => {
314+ // Empty timer so the process doesn't exit before the timeout triggers.
315+ } , 5 ) ;
316+ setTimeout ( done , 30_000_000 ) . unref ( ) ;
311317 } ) ;
312318
313319
You can’t perform that action at this time.
0 commit comments