File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -108,25 +108,4 @@ const { kStateSymbol } = require('internal/dgram');
108108}
109109
110110
111- // timers
112- {
113- const { Timer } = process . binding ( 'timer_wrap' ) ;
114- strictEqual ( Object . values ( getActiveResources ( ) ) . filter (
115- ( handle ) => ( handle instanceof Timer ) ) . length , 0 ) ;
116- const timer = setTimeout ( ( ) => { } , 500 ) ;
117- const handles = Object . values ( getActiveResources ( ) ) . filter (
118- ( handle ) => ( handle instanceof Timer ) ) ;
119- strictEqual ( handles . length , 1 ) ;
120- const handle = handles [ 0 ] ;
121- strictEqual ( Object . getPrototypeOf ( handle ) . hasOwnProperty ( 'hasRef' ) ,
122- true , 'timer_wrap: hasRef() missing' ) ;
123- strictEqual ( handle . hasRef ( ) , true ) ;
124- timer . unref ( ) ;
125- strictEqual ( handle . hasRef ( ) ,
126- false , 'timer_wrap: unref() ineffective' ) ;
127- timer . ref ( ) ;
128- strictEqual ( handle . hasRef ( ) ,
129- true , 'timer_wrap: ref() ineffective' ) ;
130- }
131-
132111// See also test/pseudo-tty/test-handle-wrap-isrefed-tty.js
You can’t perform that action at this time.
0 commit comments