Skip to content

Commit

Permalink
test-dns: Don't skip 'Get only ipv6 tcp adresses for luvit.io' test
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Jan 16, 2025
1 parent 1ca0af2 commit 0499dfe
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions tests/test-dns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,20 @@ return require('lib/tap')(function (test)
end)))
end)

-- FIXME: this test always fails on AppVeyor for some reason
if isWindows and not os.getenv'APPVEYOR' then
test("Get only ipv6 tcp adresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
socktype = "stream",
family = "inet6",
}, expect(function (err, res)
if errorAllowed(err) then
print(err, "skipping")
return
end
assert(not err, err)
p(res, #res)
assert(#res == 1)
end)))
end)
end
test("Get only ipv6 tcp adresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
socktype = "stream",
family = "inet6",
}, expect(function (err, res)
if errorAllowed(err) then
print(err, "skipping")
return
end
assert(not err, err)
p(res, #res)
assert(#res == 1)
end)))
end)

test("Get ipv4 and ipv6 tcp adresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
Expand Down

0 comments on commit 0499dfe

Please sign in to comment.