Skip to content

Commit

Permalink
fix test cases where we need use "fast:<host>:all" search the main key
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Jan 24, 2024
1 parent 518eaa6 commit 5505c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/01-unit/30-new-dns-client/02-client_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ describe("[DNS client]", function()
assert.are.equal(answers, answers2) -- same table from L1 cache

local ttl, err, value = cli.cache:peek("fast:" .. host .. ":all")
--assert.same(answers, value)
assert.same(answers, value)
local ttl_diff = answers.ttl - ttl
assert(math.abs(ttl_diff - wait_time) < 1,
("ttl diff:%s s should be near to %s s"):format(ttl_diff, wait_time))
Expand Down

0 comments on commit 5505c6b

Please sign in to comment.