summaryrefslogtreecommitdiff
path: root/test/parallel/test-dns.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-dns.js')
-rw-r--r--test/parallel/test-dns.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/parallel/test-dns.js b/test/parallel/test-dns.js
index 0636d8c28e..200b5d3cb4 100644
--- a/test/parallel/test-dns.js
+++ b/test/parallel/test-dns.js
@@ -261,11 +261,12 @@ dns.lookup('', {
const err = {
code: 'ERR_MISSING_ARGS',
type: TypeError,
- message: 'The "host", "port", and "callback" arguments must be specified'
+ message: 'The "hostname", "port", and "callback" arguments must be ' +
+ 'specified'
};
common.expectsError(() => dns.lookupService('0.0.0.0'), err);
- err.message = 'The "host" and "port" arguments must be specified';
+ err.message = 'The "hostname" and "port" arguments must be specified';
common.expectsError(() => dnsPromises.lookupService('0.0.0.0'), err);
}
@@ -274,7 +275,7 @@ dns.lookup('', {
const err = {
code: 'ERR_INVALID_OPT_VALUE',
type: TypeError,
- message: `The value "${invalidHost}" is invalid for option "host"`
+ message: `The value "${invalidHost}" is invalid for option "hostname"`
};
common.expectsError(() => {