Fix some more U tests ...

Now only PubSub are still broken ... (little refactoring required)
This commit is contained in:
Yaourt
2010-11-05 10:30:02 +01:00
parent 47a39cb520
commit a2b3417fce

View File

@@ -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<Object> resp = t.exec();
List<Object> expected = new ArrayList<Object>();
expected.add("OK");
assertEquals(expected, resp);
expected.add("OK".getBytes(Protocol.UTF8));
JedisTest.isListAreEquals(expected, resp);
// assertEquals(expected, resp);
}
@Test(expected = JedisException.class)