Skip to content

Commit

Permalink
test: use longer ttl, avoid the cached item expired. (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
membphis authored Jun 23, 2020
1 parent eafaf15 commit e30a746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/core/lrucache.t
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ obj: {"idx":2,"_cache_ver":"ver"}
end

local lru_get = core.lrucache.new({
ttl = 0.1, count = 256, invalid_stale = true,
ttl = 1, count = 256, invalid_stale = true,
})

local function f()
Expand Down

0 comments on commit e30a746

Please sign in to comment.