You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/06/23 10:21:18 UTC

[incubator-apisix] branch master updated: test: use longer ttl, avoid the cached item expired. (#1760)

This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new e30a746  test: use longer ttl, avoid the cached item expired. (#1760)
e30a746 is described below

commit e30a7469bcee27ab3422ab6d6b0b8044e2b20588
Author: YuanSheng Wang <me...@gmail.com>
AuthorDate: Tue Jun 23 18:21:08 2020 +0800

    test: use longer ttl, avoid the cached item expired. (#1760)
---
 t/core/lrucache.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/core/lrucache.t b/t/core/lrucache.t
index 5a9aefe..83b9308 100644
--- a/t/core/lrucache.t
+++ b/t/core/lrucache.t
@@ -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()