From a2b3417fce4373f1d2563089c5690de02f187e1c Mon Sep 17 00:00:00 2001 From: Yaourt Date: Fri, 5 Nov 2010 10:30:02 +0100 Subject: [PATCH] Fix some more U tests ... Now only PubSub are still broken ... (little refactoring required) --- .../jedis/tests/commands/TransactionCommandsTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/redis/clients/jedis/tests/commands/TransactionCommandsTest.java b/src/test/java/redis/clients/jedis/tests/commands/TransactionCommandsTest.java index ca43163..715ed88 100644 --- a/src/test/java/redis/clients/jedis/tests/commands/TransactionCommandsTest.java +++ b/src/test/java/redis/clients/jedis/tests/commands/TransactionCommandsTest.java @@ -10,8 +10,10 @@ import org.junit.Test; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisException; +import redis.clients.jedis.Protocol; import redis.clients.jedis.Transaction; import redis.clients.jedis.TransactionBlock; +import redis.clients.jedis.tests.JedisTest; public class TransactionCommandsTest extends JedisCommandTestBase { Jedis nj; @@ -102,8 +104,9 @@ public class TransactionCommandsTest extends JedisCommandTestBase { t.set("mykey", val); List resp = t.exec(); List expected = new ArrayList(); - expected.add("OK"); - assertEquals(expected, resp); + expected.add("OK".getBytes(Protocol.UTF8)); + JedisTest.isListAreEquals(expected, resp); +// assertEquals(expected, resp); } @Test(expected = JedisException.class)