Skip to content

Commit 5e01cca

Browse files
committed
Ignore testing 'invalid multibulk length' (#2655)
Ignoring due to PR redis/redis#9528 is merged in commit redis/redis@93e8534.
1 parent 5183085 commit 5e01cca

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

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

-25
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
import redis.clients.jedis.Connection;
1010
import redis.clients.jedis.Protocol;
11-
import redis.clients.jedis.Protocol.Command;
12-
import redis.clients.jedis.commands.ProtocolCommand;
1311
import redis.clients.jedis.exceptions.JedisConnectionException;
1412

1513
public class ConnectionTest {
@@ -62,29 +60,6 @@ public void checkCloseable() {
6260
client.close();
6361
}
6462

65-
@Test
66-
public void getErrorMultibulkLength() throws Exception {
67-
class TestConnection extends Connection {
68-
public TestConnection() {
69-
super("localhost", 6379);
70-
}
71-
72-
@Override
73-
public void sendCommand(ProtocolCommand cmd, byte[]... args) {
74-
super.sendCommand(cmd, args);
75-
}
76-
}
77-
78-
TestConnection conn = new TestConnection();
79-
80-
try {
81-
conn.sendCommand(Command.HMSET, new byte[1024 * 1024 + 1][0]);
82-
fail("Should throw exception");
83-
} catch (JedisConnectionException jce) {
84-
assertEquals("ERR Protocol error: invalid multibulk length", jce.getMessage());
85-
}
86-
}
87-
8863
@Test
8964
public void readWithBrokenConnection() {
9065
class BrokenConnection extends Connection {

0 commit comments

Comments
 (0)