Skip to content

Commit

Permalink
Merge pull request #1149 from squeek502/test-dns-linux-hotfix
Browse files Browse the repository at this point in the history
test-dns: Quick fix for resolveTxt test on Linux
  • Loading branch information
creationix committed Jun 27, 2021
2 parents dcddc2e + ef12b33 commit 3c064b5
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 3c064b5

Please sign in to comment.