Skip to content

Commit

Permalink
test-dns: Quick fix for resolveTxt test on Linux
Browse files Browse the repository at this point in the history
Still not totally sure why this test was failing, but this should fix it until we understand more about it.

See luvit#1148
  • Loading branch information
squeek502 committed Jun 26, 2021
1 parent 03c2628 commit ef12b33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test-dns.lua
Expand Up @@ -82,8 +82,12 @@ require('tap')(function (test)
end))
end)
test("resolveTxt", function (expect)
-- for some reason this test was failing on linux using the system resolver, so
-- use the defined default servers instead (the servers will change on the
-- next test anyway so this only affects this test)
dns.setDefaultServers()
dns.resolveTxt('google.com', expect(function(err, answers)
assert(not err)
assert(not err, err)
p(answers)
assert(#answers > 0)
end))
Expand Down

0 comments on commit ef12b33

Please sign in to comment.