summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2018-01-29 14:52:01 -0500
committerAnatoli Papirovski <apapirovski@mac.com>2018-02-04 08:27:06 -0500
commitfc96743454db30fbf9b4c4dc9fda0f260f8d35a6 (patch)
tree26fb647c1ed7a6a2c1dd5ac86042dbdc2e6485e0 /test
parent7020bc6e0791e513d6a8e17311fe65b2c18652c0 (diff)
downloadandroid-node-v8-fc96743454db30fbf9b4c4dc9fda0f260f8d35a6.tar.gz
android-node-v8-fc96743454db30fbf9b4c4dc9fda0f260f8d35a6.tar.bz2
android-node-v8-fc96743454db30fbf9b4c4dc9fda0f260f8d35a6.zip
timers: remove domain specific code
It is no longer necessary to explicitly set the handle to inherit the Timeout domain. PR-URL: https://github.com/nodejs/node/pull/18477 Refs: https://github.com/nodejs/node/pull/16222 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-domain-timers.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/parallel/test-domain-timers.js b/test/parallel/test-domain-timers.js
index fe7247b2a9..f9857a991a 100644
--- a/test/parallel/test-domain-timers.js
+++ b/test/parallel/test-domain-timers.js
@@ -30,13 +30,19 @@ timeoutd.on('error', common.mustCall(function(e) {
assert.strictEqual(e.message, 'Timeout UNREFd',
'Domain should catch timer error');
clearTimeout(timeout);
-}));
+}, 2));
+let t;
timeoutd.run(function() {
setTimeout(function() {
throw new Error('Timeout UNREFd');
}, 0).unref();
+
+ t = setTimeout(function() {
+ throw new Error('Timeout UNREFd');
+ }, 0);
});
+t.unref();
const immediated = domain.create();