tests fixed

pull/3826/head
Nikita Koksharov 3 years ago
parent b9ed3fc743
commit d77ea3e4ea

@ -83,7 +83,7 @@ public class RedissonTest extends BaseTest {
}
ex.shutdown();
assertThat(ex.awaitTermination(5, TimeUnit.SECONDS)).isTrue();
assertThat(ex.awaitTermination(7, TimeUnit.SECONDS)).isTrue();
inst.shutdown();
}

@ -53,7 +53,7 @@ public class RedissonBlockingDequeRxTest extends BaseRxTest {
RBlockingDequeRx<String> blockingDeque = redisson.getBlockingDeque("blocking_deque");
long start = System.currentTimeMillis();
String redisTask = sync(blockingDeque.pollLastAndOfferFirstTo("deque", 1, TimeUnit.SECONDS));
assertThat(System.currentTimeMillis() - start).isBetween(950L, 1150L);
assertThat(System.currentTimeMillis() - start).isBetween(950L, 1200L);
assertThat(redisTask).isNull();
}

Loading…
Cancel
Save