Skip to content

Commit

Permalink
test: update test-net-dns-lookup.js IPv6 address
Browse files Browse the repository at this point in the history
This test recently began failing locally, as a link-local address
is now returned.

Refs: nodejs#46790
  • Loading branch information
cjihrig committed Apr 14, 2023
1 parent cad0ae7 commit e377a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-net-dns-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e377a49

Please sign in to comment.