Skip to content

Commit

Permalink
make sure Jcache will exceed expired period
Browse files Browse the repository at this point in the history
  • Loading branch information
qinnnyul committed Apr 28, 2018
1 parent 7692c29 commit 12249b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 12249b7

Please sign in to comment.