Skip to content

Commit 79d27ef

Browse files
committed
Merge pull request #10 from phufool/master
- Removed test case using deprecated ping method
2 parents cef8520 + a764ad1 commit 79d27ef

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/main/java/redis/clients/jedis/BinaryJedisCluster.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,10 @@ public Long execute(Jedis connection) {
11131113
}.runBinary(key);
11141114
}
11151115

1116+
public Map<String, JedisPool> getClusterNodes() {
1117+
return connectionHandler.getNodes();
1118+
}
1119+
11161120
@Override
11171121
public Object eval(final byte[] script, final byte[] keyCount, final byte[]... params) {
11181122
return new JedisClusterCommand<Object>(connectionHandler, timeout,

src/test/java/redis/clients/jedis/tests/JedisClusterTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,6 @@ public void testAskResponse() throws InterruptedException {
163163
assertEquals("foo", jc.get("51"));
164164
}
165165

166-
@Test(expected = JedisClusterException.class)
167-
public void testThrowExceptionWithoutKey() {
168-
Set<HostAndPort> jedisClusterNode = new HashSet<HostAndPort>();
169-
jedisClusterNode.add(new HostAndPort("127.0.0.1", 7379));
170-
JedisCluster jc = new JedisCluster(jedisClusterNode);
171-
jc.ping();
172-
}
173-
174166
@Test(expected = JedisClusterMaxRedirectionsException.class)
175167
public void testRedisClusterMaxRedirections() {
176168
Set<HostAndPort> jedisClusterNode = new HashSet<HostAndPort>();

0 commit comments

Comments
 (0)