Skip to content

Commit 14bf7cf

Browse files
committed
test: remove timers test from test-handle-wrap-isrefed.js
Since this doesn't work: process.binding('timer_wrap');
1 parent 08ef35c commit 14bf7cf

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/parallel/test-handle-wrap-isrefed.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)