From 5e01cca0e72bdafca8bf207508eb6aa629cd2a6c Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 3 Oct 2021 16:20:49 +0600 Subject: [PATCH] Ignore testing 'invalid multibulk length' (#2655) Ignoring due to PR https://github.com/redis/redis/pull/9528 is merged in commit https://github.com/redis/redis/commit/93e85347136a483047e92a3a7554f428d6260b0c. --- .../clients/jedis/tests/ConnectionTest.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/test/java/redis/clients/jedis/tests/ConnectionTest.java b/src/test/java/redis/clients/jedis/tests/ConnectionTest.java index a90ca0dce1..a8de1c200a 100644 --- a/src/test/java/redis/clients/jedis/tests/ConnectionTest.java +++ b/src/test/java/redis/clients/jedis/tests/ConnectionTest.java @@ -8,8 +8,6 @@ import redis.clients.jedis.Connection; import redis.clients.jedis.Protocol; -import redis.clients.jedis.Protocol.Command; -import redis.clients.jedis.commands.ProtocolCommand; import redis.clients.jedis.exceptions.JedisConnectionException; public class ConnectionTest { @@ -62,29 +60,6 @@ public void checkCloseable() { client.close(); } - @Test - public void getErrorMultibulkLength() throws Exception { - class TestConnection extends Connection { - public TestConnection() { - super("localhost", 6379); - } - - @Override - public void sendCommand(ProtocolCommand cmd, byte[]... args) { - super.sendCommand(cmd, args); - } - } - - TestConnection conn = new TestConnection(); - - try { - conn.sendCommand(Command.HMSET, new byte[1024 * 1024 + 1][0]); - fail("Should throw exception"); - } catch (JedisConnectionException jce) { - assertEquals("ERR Protocol error: invalid multibulk length", jce.getMessage()); - } - } - @Test public void readWithBrokenConnection() { class BrokenConnection extends Connection {