| commit | 38b22dc36a24774187faef90a3ee7dce27e6e51d | [log] [tgz] |
|---|---|---|
| author | Jens Deppe <jdeppe@vmware.com> | Tue Aug 31 05:57:51 2021 -0700 |
| committer | GitHub <noreply@github.com> | Tue Aug 31 05:57:51 2021 -0700 |
| tree | acd7aa9d54c89cf5e32c8fdd3edde1b418cbd6c4 | |
| parent | a36c3279eed28d0b190d8a23e5b16b675fdedc84 [diff] |
GEODE-9252: Wait longer for Redis cluster to be formed (#6817)
diff --git a/geode-apis-compatible-with-redis/src/commonTest/java/org/apache/geode/redis/NativeRedisClusterTestRule.java b/geode-apis-compatible-with-redis/src/commonTest/java/org/apache/geode/redis/NativeRedisClusterTestRule.java index cd677c2..0986d34 100644 --- a/geode-apis-compatible-with-redis/src/commonTest/java/org/apache/geode/redis/NativeRedisClusterTestRule.java +++ b/geode-apis-compatible-with-redis/src/commonTest/java/org/apache/geode/redis/NativeRedisClusterTestRule.java
@@ -135,7 +135,7 @@ int primaryCount = 0; try (Jedis jedis = new Jedis("localhost", port)) { - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 60; i++) { nodes = ClusterNodes.parseClusterNodes(jedis.clusterNodes()).getNodes(); primaryCount = nodes.stream().mapToInt(x -> x.primary ? 1 : 0).sum(); if (primaryCount == wantedPrimaries) { @@ -143,7 +143,7 @@ } try { - Thread.sleep(500); + Thread.sleep(1000); } catch (InterruptedException ignored) { } }