FaultTolerantRedisClusterClientTest: increase blpop timeouts to make tests more reliable

This commit is contained in:
Chris Eager authored and GitHub committed 2024-12-27 12:23:49 -08:00
1 parent 541bf968e5
commit 9121032114
1 file changed
+2 -2
@@ -107,13 +107,13 @@ class FaultTolerantRedisClusterClientTest {
cluster = buildCluster(null, ClientResources.builder());
final ExecutionException asyncException = assertThrows(ExecutionException.class,
() -> cluster.withCluster(connection -> connection.async().blpop(2 * TIMEOUT.toMillis() / 1000d, "key"))
() -> cluster.withCluster(connection -> connection.async().blpop(10 * TIMEOUT.toMillis() / 1000d, "key"))
.get());
assertInstanceOf(RedisCommandTimeoutException.class, asyncException.getCause());
assertThrows(RedisCommandTimeoutException.class,
() -> cluster.withCluster(connection -> connection.sync().blpop(2 * TIMEOUT.toMillis() / 1000d, "key")));
() -> cluster.withCluster(connection -> connection.sync().blpop(10 * TIMEOUT.toMillis() / 1000d, "key")));
}
@Test