made the test for shdict:get_stale less possible to fail.

This commit is contained in:
Yichun Zhang (agentzh) 2013-08-04 00:44:36 -07:00
Родитель 7dbd2a5118
Коммит c7237efd8a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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")