Skip to content

Commit

Permalink
add test for ipv6 dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Phillips committed Aug 13, 2015
1 parent a336aa7 commit c65df4e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test-dns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ require('tap')(function (test)
assert(not err)
end))
end)
test("resolveSRV over IPV6", function (expect)
dns.setTimeout(2000)
dns.setServers( { { ['host'] = '2001:4860:4860::8888', ['port'] = 53 } } )
dns.resolveSrv('_https._tcp.luvit.io', expect(function(err, answers)
assert(not err)
p(answers)
assert(#answers > 0)
end))
end)
test("load resolver", function ()
if jit.os == 'Windows' then
return
Expand Down

0 comments on commit c65df4e

Please sign in to comment.