Fail if the Sentinel does not return the slave.
This commit is contained in:
committed by
Hisham Mardam-Bey
parent
33e64bdb6e
commit
d377bcf6d3
@@ -49,6 +49,7 @@ public class JedisSentinelTest {
|
||||
assertEquals("6379", masterHostAndPort.get(1));
|
||||
|
||||
List<Map<String, String>> slaves = j.sentinelSlaves(masterName);
|
||||
assertEquals(1, slaves.size());
|
||||
assertEquals("6379", slaves.get(0).get("master-port"));
|
||||
|
||||
List<? extends Object> isMasterDownByAddr = j
|
||||
|
||||
Reference in New Issue
Block a user