Skip to content

Commit

Permalink
fix(test): fix pdk flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon authored and bungle committed Nov 14, 2023
1 parent 731cc82 commit 9393b96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/05-mlcache/03-peek.t
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ stale: nil
return 123
end))
ngx.sleep(0.3)
ngx.sleep(0.31)
local ttl, err, data, stale = cache:peek("my_key", true)
if err then
Expand Down Expand Up @@ -720,7 +720,7 @@ stale: true
return
end
ngx.sleep(0.3)
ngx.sleep(0.31)
local ttl, err, data, stale = cache:peek("my_key", true)
if err then
Expand Down Expand Up @@ -762,7 +762,7 @@ stale: true
return
end
ngx.sleep(0.3)
ngx.sleep(0.31)
for i = 1, 3 do
remaining_ttl, err, data = cache:peek("key", true)
Expand Down Expand Up @@ -808,7 +808,7 @@ data: 123
return
end
ngx.sleep(0.3)
ngx.sleep(0.31)
for i = 1, 3 do
remaining_ttl, err, data = cache:peek("key", true)
Expand Down

1 comment on commit 9393b96

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:9393b96f4f435c6b67846b1f018f2b5c5b1702f8
Artifacts available https://github.com/Kong/kong/actions/runs/6862515474

Please sign in to comment.