Add JedisClusterCommand and updated code to use it respectively

This commit is contained in:
Marcos Nils
2013-12-10 10:25:41 -03:00
parent 0ebbf02c94
commit c008070045
4 changed files with 156 additions and 44 deletions

View File

@@ -52,7 +52,9 @@ public class JedisClusterTest extends Assert {
boolean clusterOk = false;
while (!clusterOk) {
if (node1.clusterInfo().split("\n")[0].contains("ok")) {
if (node1.clusterInfo().split("\n")[0].contains("ok") &&
node2.clusterInfo().split("\n")[0].contains("ok") &&
node3.clusterInfo().split("\n")[0].contains("ok") ) {
clusterOk = true;
}
Thread.sleep(100);