Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
raoxiaoyan committed Jul 1, 2024
1 parent 258e907 commit b154b21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/02-integration/03-db/14-dao_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ for _, strategy in helpers.all_strategies() do

-- select or delete keyauth_credentials after ttl expired.

local expired_keyauth_credentials = kong.db.keyauth_credentials:select({ consumer = { id = consumer.id } })
local expired_keyauth_credentials = helpers.wait_until(function()
return kong.db.keyauth_credentials:select({ consumer = { id = consumer.id } })
end, 1)
assert.is_nil(expired_keyauth_credentials)
kong.db.keyauth_credentials:delete({ consumer = { id = consumer.id } })

Expand Down

0 comments on commit b154b21

Please sign in to comment.