made the test for shdict:get_stale less possible to fail.
This commit is contained in:
Родитель
7dbd2a5118
Коммит
c7237efd8a
|
@ -1463,7 +1463,7 @@ cur value: hello hello hello hello hello hello hello hello hello hello1
|
|||
local dogs = ngx.shared.dogs
|
||||
dogs:set("foo", 32, 0.01)
|
||||
dogs:set("blah", 33, 0.1)
|
||||
ngx.sleep(0.01)
|
||||
ngx.sleep(0.02)
|
||||
local val, flags, stale = dogs:get_stale("foo")
|
||||
ngx.say(val, ", ", flags, ", ", stale)
|
||||
local val, flags, stale = dogs:get_stale("blah")
|
||||
|
|
Загрузка…
Ссылка в новой задаче