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.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-domain-timers.js b/test/parallel/test-domain-timers.js
index d42afa7471..7d51b61fd0 100644
--- a/test/parallel/test-domain-timers.js
+++ b/test/parallel/test-domain-timers.js
@@ -1,11 +1,11 @@
'use strict';
const common = require('../common');
-var domain = require('domain');
-var assert = require('assert');
+const domain = require('domain');
+const assert = require('assert');
-var timeout;
+let timeout;
-var timeoutd = domain.create();
+const timeoutd = domain.create();
timeoutd.on('error', common.mustCall(function(e) {
assert.strictEqual(e.message, 'Timeout UNREFd',
@@ -19,7 +19,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',