mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: refactor test-dgram-exclusive-implicit-bind
* assert.equal() -> assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/10066 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
1 parent
67b11a429b
commit
f10c3210a1
1 file changed
+3
-3
@@ -45,7 +45,7 @@ if (cluster.isMaster) {
|
||||
var ports = {};
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.equal(pass, true);
|
||||
assert.strictEqual(pass, true);
|
||||
});
|
||||
|
||||
var target = dgram.createSocket('udp4');
|
||||
@@ -55,12 +55,12 @@ if (cluster.isMaster) {
|
||||
ports[rinfo.port] = true;
|
||||
|
||||
if (common.isWindows && messages === 2) {
|
||||
assert.equal(Object.keys(ports).length, 2);
|
||||
assert.strictEqual(Object.keys(ports).length, 2);
|
||||
done();
|
||||
}
|
||||
|
||||
if (!common.isWindows && messages === 4) {
|
||||
assert.equal(Object.keys(ports).length, 3);
|
||||
assert.strictEqual(Object.keys(ports).length, 3);
|
||||
done();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user