Skip to content

Commit f5e622e

Browse files
mattcphillipsFishrock123
authored andcommitted
test: use assert.strictEqual and fix setTimeout
Changes assert.equal to assert.strictEqual in two places and adds a second argument of 0 to setTimeout PR-URL: #9957 Reviewed-By: James M Snell <[email protected]>
1 parent 0a4fc64 commit f5e622e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/parallel/test-domain-timers.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ var timeout;
88
var timeoutd = domain.create();
99

1010
timeoutd.on('error', common.mustCall(function(e) {
11-
assert.equal(e.message, 'Timeout UNREFd', 'Domain should catch timer error');
11+
assert.strictEqual(e.message, 'Timeout UNREFd',
12+
'Domain should catch timer error');
1213
clearTimeout(timeout);
1314
}));
1415

1516
timeoutd.run(function() {
1617
setTimeout(function() {
1718
throw new Error('Timeout UNREFd');
18-
}).unref();
19+
}, 0).unref();
1920
});
2021

2122
var immediated = domain.create();
2223

2324
immediated.on('error', common.mustCall(function(e) {
24-
assert.equal(e.message, 'Immediate Error',
25-
'Domain should catch immediate error');
25+
assert.strictEqual(e.message, 'Immediate Error',
26+
'Domain should catch immediate error');
2627
}));
2728

2829
immediated.run(function() {

0 commit comments

Comments
 (0)