fixed some typos
Signed-off-by: Frank Gadban <frankgad@outlook.de>
This commit is contained in:
parent
a4ec5c8a88
commit
e9059eef01
3 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ describe("dns.lookup", function()
|
|||
assert.spy(spy_ngx_log).was_called_with(ngx.ERR, "failed to query the DNS server for ", "example.com", ":\n", "server returned error code: 1: format error\nserver returned error code: 1: format error")
|
||||
end)
|
||||
|
||||
it("retuns host when there's answer but no A/AAAA record in it", function()
|
||||
it("returns host when there's answer but no A/AAAA record in it", function()
|
||||
helpers.mock_resty_dns_query(nil, { { name = "example.com", cname = "sub.example.com", ttl = 60 } })
|
||||
assert.are.same({ "example.com" }, dns_lookup("example.com"))
|
||||
assert.spy(spy_ngx_log).was_called_with(ngx.ERR, "failed to query the DNS server for ", "example.com", ":\n", "no A record resolved\nno AAAA record resolved")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue