From 28f2dcb22a2dd4c3d7f28c7b4fb02b89600ccaea Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 3 Jun 2018 23:01:02 +0200 Subject: [PATCH] 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 Reviewed-By: Richard Lau Reviewed-By: Trivikram Kamat --- test/internet/test-dns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/internet/test-dns.js b/test/internet/test-dns.js index f1b7b4ff056833..56fa370fce01cf 100644 --- a/test/internet/test-dns.js +++ b/test/internet/test-dns.js @@ -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(); });