summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-multicast-setTTL.js
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2017-06-17 15:59:20 +0200
committerTobias Nießen <tniessen@tnie.de>2017-06-20 20:35:55 +0200
commit279fcc44fa3590a3255d316d03e93a0b58696b33 (patch)
treeba33fda461c9ac194f0ba61ee97df3eadaca2307 /test/parallel/test-dgram-multicast-setTTL.js
parenta0f728434617c1b84e20a56da33ed888dc254508 (diff)
downloadandroid-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.tar.gz
android-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.tar.bz2
android-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.zip
dgram: change parameter name in set(Multicast)TTL
Changed the parameter name in set(Multicast)TTL from "arg" to "ttl" both within code and error messages and added the actual type of the argument to the error message. PR-URL: https://github.com/nodejs/node/pull/13747 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-dgram-multicast-setTTL.js')
-rw-r--r--test/parallel/test-dgram-multicast-setTTL.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-multicast-setTTL.js b/test/parallel/test-dgram-multicast-setTTL.js
index b7d1e01b32..bd04ce4f32 100644
--- a/test/parallel/test-dgram-multicast-setTTL.js
+++ b/test/parallel/test-dgram-multicast-setTTL.js
@@ -40,7 +40,7 @@ socket.on('listening', common.mustCall(() => {
}, common.expectsError({
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: /^The "arg" argument must be of type number$/
+ message: 'The "ttl" argument must be of type number. Received type string'
}));
//close the socket