Skip to content

Commit

Permalink
test: fix linters and messages of tests
Browse files Browse the repository at this point in the history
Fix max-len and assert.throws message
  • Loading branch information
universePrisoner committed Dec 20, 2019
1 parent 3abcdf4 commit 0559d2c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/parallel/test-dgram-membership.js
Expand Up @@ -84,7 +84,8 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true });
socket.addSourceSpecificMembership(0, multicastAddress);
}, {
code: 'ERR_INVALID_ARG_TYPE',
message: /^The "sourceAddress" argument must be of type string\. Received type number$/
message: 'The "sourceAddress" argument must be of type string. ' +
'Received type number (0)'
});
socket.close();
}
Expand All @@ -96,7 +97,8 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true });
socket.addSourceSpecificMembership(multicastAddress, 0);
}, {
code: 'ERR_INVALID_ARG_TYPE',
message: /^The "groupAddress" argument must be of type string\. Received type number$/
message: 'The "groupAddress" argument must be of type string. ' +
'Received type number (0)'
});
socket.close();
}
Expand All @@ -120,7 +122,8 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true });
socket.dropSourceSpecificMembership(0, multicastAddress);
}, {
code: 'ERR_INVALID_ARG_TYPE',
message: /^The "sourceAddress" argument must be of type string\. Received type number$/
message: 'The "sourceAddress" argument must be of type string. ' +
'Received type number (0)'
});
socket.close();
}
Expand All @@ -132,7 +135,8 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true });
socket.dropSourceSpecificMembership(multicastAddress, 0);
}, {
code: 'ERR_INVALID_ARG_TYPE',
message: /^The "groupAddress" argument must be of type string\. Received type number$/
message: 'The "groupAddress" argument must be of type string. ' +
'Received type number (0)'
});
socket.close();
}
Expand Down

0 comments on commit 0559d2c

Please sign in to comment.