Pipeline.exec() now returns a response

This commit is contained in:
ivowiblo
2012-04-29 02:55:22 -04:00
parent d84ffdd8bc
commit d526a32b12
2 changed files with 8 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ public class PipeliningTest extends Assert {
p.multi();
Response<Long> r1 = p.hincrBy("a", "f1", -1);
Response<Long> r2 = p.hincrBy("a", "f1", -2);
p.exec();
Response<List<Object>> r3 = p.exec();
List<Object> result = p.syncAndReturnAll();
assertEquals(new Long(-1), r1.get());
@@ -188,5 +188,9 @@ public class PipeliningTest extends Assert {
List<Object> multiResult = (List<Object>) result.get(3);
assertEquals(new Long(-1), multiResult.get(0));
assertEquals(new Long(-3), multiResult.get(1));
assertEquals(new Long(-1), r3.get().get(0));
assertEquals(new Long(-3), r3.get().get(1));
}
}