Skip to content

Commit 12249b7

Browse files
committed
make sure Jcache will exceed expired period
1 parent 7692c29 commit 12249b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dubbo-filter/dubbo-filter-cache/src/test/java/com/alibaba/dubbo/cache/support/jcache/JCacheFactoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public void testJCacheGetExpired() throws Exception {
4343
Invocation invocation = new RpcInvocation();
4444
Cache cache = cacheFactory.getCache(url, invocation);
4545
cache.put("testKey", "testValue");
46+
Thread.sleep(10);
4647
assertNull(cache.get("testKey"));
4748
}
4849

0 commit comments

Comments
 (0)