summaryrefslogtreecommitdiff
path: root/test/parallel/test-handle-wrap-isrefed.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-handle-wrap-isrefed.js')
-rw-r--r--test/parallel/test-handle-wrap-isrefed.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/parallel/test-handle-wrap-isrefed.js b/test/parallel/test-handle-wrap-isrefed.js
index 0b6afe83df..d6d864cc35 100644
--- a/test/parallel/test-handle-wrap-isrefed.js
+++ b/test/parallel/test-handle-wrap-isrefed.js
@@ -110,25 +110,4 @@ const dgram = require('dgram');
}
-// timers
-{
- const { Timer } = process.binding('timer_wrap');
- strictEqual(process._getActiveHandles().filter(
- (handle) => (handle instanceof Timer)).length, 0);
- const timer = setTimeout(() => {}, 500);
- const handles = process._getActiveHandles().filter(
- (handle) => (handle instanceof Timer));
- strictEqual(handles.length, 1);
- const handle = handles[0];
- strictEqual(Object.getPrototypeOf(handle).hasOwnProperty('hasRef'),
- true, 'timer_wrap: hasRef() missing');
- strictEqual(handle.hasRef(), true);
- timer.unref();
- strictEqual(handle.hasRef(),
- false, 'timer_wrap: unref() ineffective');
- timer.ref();
- strictEqual(handle.hasRef(),
- true, 'timer_wrap: ref() ineffective');
-}
-
// see also test/pseudo-tty/test-handle-wrap-isrefed-tty.js