diff --git a/src/test/java/redis/clients/jedis/tests/ProtocolTest.java b/src/test/java/redis/clients/jedis/tests/ProtocolTest.java index 00ccbc7..e871802 100644 --- a/src/test/java/redis/clients/jedis/tests/ProtocolTest.java +++ b/src/test/java/redis/clients/jedis/tests/ProtocolTest.java @@ -70,8 +70,8 @@ public class ProtocolTest extends Assert { public void singleLineReply() { InputStream is = new ByteArrayInputStream("+OK\r\n".getBytes()); Protocol protocol = new Protocol(); - String response = (String) protocol.read(new RedisInputStream(is)); - assertEquals("OK", response); + byte[] response = (byte[]) protocol.read(new RedisInputStream(is)); + assertArrayEquals("OK".getBytes(Protocol.UTF8), response); } @Test @@ -112,7 +112,7 @@ public class ProtocolTest extends Assert { List response2 = (List) protocol.read(new RedisInputStream(is)); List expected2 = new ArrayList(); expected2.add("foo".getBytes(Protocol.UTF8)); - expected2.add("OK"); + expected2.add("OK".getBytes(Protocol.UTF8)); expected2.add(1000); List sub = new ArrayList(); sub.add("foo".getBytes(Protocol.UTF8)); diff --git a/src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java b/src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java index 4fe03f0..6bb404f 100644 --- a/src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java +++ b/src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java @@ -91,7 +91,7 @@ public class SortedSetCommandsTest extends JedisCommandTestBase { expected.add("a"); expected.add("b"); - assertEquals(3d, score); + assertEquals(3d, score, 0); assertEquals(expected, jedis.zrange("foo", 0, 100)); }