diff --git a/dubbo-filter/dubbo-filter-cache/src/test/java/com/alibaba/dubbo/cache/support/jcache/JCacheFactoryTest.java b/dubbo-filter/dubbo-filter-cache/src/test/java/com/alibaba/dubbo/cache/support/jcache/JCacheFactoryTest.java index d5c3a743054..7a4aea84f8f 100644 --- a/dubbo-filter/dubbo-filter-cache/src/test/java/com/alibaba/dubbo/cache/support/jcache/JCacheFactoryTest.java +++ b/dubbo-filter/dubbo-filter-cache/src/test/java/com/alibaba/dubbo/cache/support/jcache/JCacheFactoryTest.java @@ -43,6 +43,7 @@ public void testJCacheGetExpired() throws Exception { Invocation invocation = new RpcInvocation(); Cache cache = cacheFactory.getCache(url, invocation); cache.put("testKey", "testValue"); + Thread.sleep(10); assertNull(cache.get("testKey")); }