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
{{ message }}
Repository navigation
test_runner (after) doesn't work on v21.7.0 #52013
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?
Activity
climba03003 commentedon Mar 8, 2024
It is already fixed in #51998
And pending to release on #52002