From e377a4913fda58c2991a0229e1e6a412ddafd18c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 14 Apr 2023 11:03:12 -0400 Subject: [PATCH] test: update test-net-dns-lookup.js IPv6 address This test recently began failing locally, as a link-local address is now returned. Refs: https://github.com/nodejs/node/pull/46790 --- test/parallel/test-net-dns-lookup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-dns-lookup.js b/test/parallel/test-net-dns-lookup.js index 8ef0382ae1a816..adf9fbf0489690 100644 --- a/test/parallel/test-net-dns-lookup.js +++ b/test/parallel/test-net-dns-lookup.js @@ -33,7 +33,7 @@ server.listen(0, common.mustCall(function() { net.connect(this.address().port, 'localhost') .on('lookup', common.mustCallAtLeast(function(err, ip, type, host) { assert.strictEqual(err, null); - assert.match(ip, /^(127\.0\.0\.1|::1)$/); + assert.match(ip, /^(127\.0\.0\.1|(fe80)?::1)$/); assert.match(type.toString(), /^(4|6)$/); assert.strictEqual(host, 'localhost'); }, 1));