Skip to content

Commit

Permalink
fix tests: change assert.falsy to assert.is_nil
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Jul 3, 2024
1 parent b4258f8 commit 980d290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/01-unit/21-dns-client/02-client_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,12 @@ describe("[DNS client]", function()
-- check first CNAME
local key1 = client.TYPE_CNAME..":"..host
local entry1 = lrucache:get(key1)
assert.falsy(entry1)
assert.is_nil(entry1)

-- check second CNAME
local key2 = client.TYPE_CNAME..":thuis.kong-gateway-testing.link"
local entry2 = lrucache:get(key2)
assert.falsy(entry2)
assert.is_nil(entry2)

assert.are.equal(host, answers[1].name) -- we got final name same to host
assert.are.equal(typ, answers[1].type) -- we got a final A type record
Expand Down

0 comments on commit 980d290

Please sign in to comment.