Skip to content

Commit 27f302d

Browse files
sashashakunMylesBorins
authored andcommitted
test: remove unused args and comparison fix
Remove unused arguments and change non-strict comparison to the strict one in test. PR-URL: #11396 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a55af77 commit 27f302d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/internet/test-dgram-multicast-multi-process.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ if (common.inFreeBSDJail) {
2121
return;
2222
}
2323

24-
function launchChildProcess(index) {
24+
function launchChildProcess() {
2525
const worker = fork(__filename, ['child']);
2626
workers[worker.pid] = worker;
2727

2828
worker.messagesReceived = [];
2929

3030
// Handle the death of workers.
31-
worker.on('exit', function(code, signal) {
31+
worker.on('exit', function(code) {
3232
// Don't consider this the true death if the worker has finished
3333
// successfully or if the exit code is 0.
3434
if (worker.isDone || code === 0) {
@@ -188,7 +188,7 @@ if (process.argv[2] === 'child') {
188188

189189
process.send({ message: buf.toString() });
190190

191-
if (receivedMessages.length == messages.length) {
191+
if (receivedMessages.length === messages.length) {
192192
// .dropMembership() not strictly needed but here as a sanity check.
193193
listenSocket.dropMembership(LOCAL_BROADCAST_HOST);
194194
process.nextTick(function() {

0 commit comments

Comments
 (0)