summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-timers.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-domain-timers.js')
-rw-r--r--test/parallel/test-domain-timers.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-domain-timers.js b/test/parallel/test-domain-timers.js
index 6ddec404cd..79bd300545 100644
--- a/test/parallel/test-domain-timers.js
+++ b/test/parallel/test-domain-timers.js
@@ -3,9 +3,7 @@ const common = require('../common');
const domain = require('domain');
const assert = require('assert');
-var timeout;
-
-var timeoutd = domain.create();
+const timeoutd = domain.create();
timeoutd.on('error', common.mustCall(function(e) {
assert.strictEqual(e.message, 'Timeout UNREFd',
@@ -19,7 +17,7 @@ timeoutd.run(function() {
}, 0).unref();
});
-var immediated = domain.create();
+const immediated = domain.create();
immediated.on('error', common.mustCall(function(e) {
assert.strictEqual(e.message, 'Immediate Error',
@@ -32,4 +30,4 @@ immediated.run(function() {
});
});
-timeout = setTimeout(function() {}, 10 * 1000);
+const timeout = setTimeout(function() {}, 10 * 1000);