mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-06-23 19:36:43 +00:00
Make sure we don't spuriously empty caches.
This commit is contained in:
@@ -97,7 +97,19 @@ public class InternalCacheTest {
|
||||
}
|
||||
}));
|
||||
try {
|
||||
Thread.sleep(20);
|
||||
Thread.sleep(5);
|
||||
} catch (InterruptedException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
cache.cleanup();
|
||||
Assert.assertEquals(one, cache.get("hi", new Callable<Object>() {
|
||||
@Override
|
||||
public Object call() throws Exception {
|
||||
return two;
|
||||
}
|
||||
}));
|
||||
try {
|
||||
Thread.sleep(5);
|
||||
} catch (InterruptedException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user