Fix ExpiringCacheAsyncTest.testFetchValue unreliability (#1066)
Signed-off-by: Wouter Born <github@maindrain.net>pull/1072/head
parent
edc27847d1
commit
eda0af1cd2
|
@ -38,7 +38,7 @@ public class ExpiringCacheAsyncTest extends JavaTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFetchValue() throws InterruptedException, ExecutionException {
|
public void testFetchValue() throws InterruptedException, ExecutionException {
|
||||||
ExpiringCacheAsync<Double> t = new ExpiringCacheAsync<Double>(100);
|
ExpiringCacheAsync<Double> t = new ExpiringCacheAsync<Double>(500);
|
||||||
assertTrue(t.isExpired());
|
assertTrue(t.isExpired());
|
||||||
// We should always be able to get the raw value, expired or not
|
// We should always be able to get the raw value, expired or not
|
||||||
assertNull(t.getLastKnownValue());
|
assertNull(t.getLastKnownValue());
|
||||||
|
|
Loading…
Reference in New Issue