You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 21.7.0, the t.after method is not called and completed, unlike other versions (I tried v21.6.2 and v20.11.0)
'use strict';constassert=require('node:assert');consttest=require('node:test');constsomeListener=()=>{lettimer=setTimeout(()=>{},9999999);return{cancel: ()=>{if(!timer)return;clearTimeout(timer);timer=null;}};};test('This test, does not complete',async(t)=>{constlistener=someListener();t.after(()=>{listener.cancel();});assert.strictEqual(1,1);});
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
What I see on v21.7.0
What I expected:
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
node v21.7.0
Platform
macOS Sonoma 14.3.1 Darwin Kernel Version 23.3.0
Subsystem
node:test
What steps will reproduce the bug?
In version 21.7.0, the
t.after
method is not called and completed, unlike other versions (I tried v21.6.2 and v20.11.0)How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
What I see on v21.7.0

What I expected:

Additional information
No response
The text was updated successfully, but these errors were encountered: