test: update test-dns error message

test-dns is in the internet suite and therefore is rarely run. (That
will change soon. We will run internet tests nightly in CI.) Because it
is infrequently run, it was not noticed that it no longer passes. (An
error message has changed to provide more information.) This change
fixes the test so it passes.

PR-URL: https://github.com/nodejs/node/pull/21116
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Rich Trott authored and Myles Borins committed 2018-06-06 10:32:48 +02:00
1 parent 66f4c7bdec
commit 28f2dcb22a
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ function checkWrap(req) {
TEST(function test_reverse_bogus(done) {
assert.throws(() => {
dns.reverse('bogus ip', common.mustNotCall());
}, /^Error: getHostByAddr EINVAL$/);
}, /^Error: getHostByAddr EINVAL bogus ip$/);
done();
});