Skip to content

Commit

Permalink
bucket object expire test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Aug 3, 2015
1 parent aea51b6 commit dfde275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/redisson/RedissonBucketTest.java
Expand Up @@ -20,7 +20,7 @@ public void testExpire() throws InterruptedException {
RBucket<String> bucket = redisson.getBucket("test1");
bucket.set("someValue", 1, TimeUnit.SECONDS);

Thread.sleep(1000);
Thread.sleep(1100);

Assert.assertNull(bucket.get());
}
Expand All @@ -42,10 +42,10 @@ public void testFindKeys() {
RMap<String, String> map = redisson.getMap("test2");
map.fastPut("1", "2");

Queue<String> keys = redisson.findKeysByPattern("test?");
Collection<String> keys = redisson.findKeysByPattern("test?");
MatcherAssert.assertThat(keys, Matchers.containsInAnyOrder("test1", "test2"));

Queue<String> keys2 = redisson.findKeysByPattern("test");
Collection<String> keys2 = redisson.findKeysByPattern("test");
MatcherAssert.assertThat(keys2, Matchers.empty());
}

Expand Down

0 comments on commit dfde275

Please sign in to comment.