Skip to content

Commit 2c5d562

Browse files
Ethan-Arrowoodaddaleax
authored andcommitted
test: refactor test-domain-exit-dispose-again
setTimeout at 49:5 requires two arguments. On lines 72 and 73 changed assert.equal() to assert.strictEqual(). PR-URL: #10003 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 6d4f270 commit 2c5d562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-domain-exit-dispose-again.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ setTimeout(function firstTimer() {
5151
'a domain that should be disposed.');
5252
disposalFailed = true;
5353
process.exit(1);
54-
});
54+
}, 1);
5555

5656
// Make V8 throw an unreferenced error. As a result, the domain's error
5757
// handler is called, which disposes the domain "d" and should prevent the
@@ -69,8 +69,8 @@ setTimeout(function secondTimer() {
6969
}, TIMEOUT_DURATION);
7070

7171
process.on('exit', function() {
72-
assert.equal(a, 10);
73-
assert.equal(disposalFailed, false);
72+
assert.strictEqual(a, 10);
73+
assert.strictEqual(disposalFailed, false);
7474
assert(secondTimerRan);
7575
console.log('ok');
7676
});

0 commit comments

Comments
 (0)