Skip to content

Commit e377a49

Browse files
committed
test: update test-net-dns-lookup.js IPv6 address
This test recently began failing locally, as a link-local address is now returned. Refs: nodejs#46790
1 parent cad0ae7 commit e377a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-net-dns-lookup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ server.listen(0, common.mustCall(function() {
3333
net.connect(this.address().port, 'localhost')
3434
.on('lookup', common.mustCallAtLeast(function(err, ip, type, host) {
3535
assert.strictEqual(err, null);
36-
assert.match(ip, /^(127\.0\.0\.1|::1)$/);
36+
assert.match(ip, /^(127\.0\.0\.1|(fe80)?::1)$/);
3737
assert.match(type.toString(), /^(4|6)$/);
3838
assert.strictEqual(host, 'localhost');
3939
}, 1));

0 commit comments

Comments
 (0)