fixing Issue 188

This commit is contained in:
Vladimir Soskov
2011-07-31 19:50:16 -07:00
parent 6c3ec9fc14
commit 22d4d3fc53
6 changed files with 87 additions and 3 deletions

View File

@@ -118,4 +118,20 @@ public class PipeliningTest extends Assert {
p.sync();
assertNull(shouldNotExist.get());
}
@Test
public void piplineWithError(){
Pipeline p = jedis.pipelined();
p.set("foo", "bar");
Response<Set<String>> error = p.smembers("foo");
Response<String> r = p.get("foo");
p.sync();
try{
error.get();
fail();
}catch(JedisDataException e){
//that is fine we should be here
}
assertEquals(r.get(), "bar");
}
}