incr/decr operate on 64-bit numbers. Switching from Integer to Long
This commit is contained in:
committed by
Jonathan Leibiusky
parent
a1815f3881
commit
d18cc4bd13
@@ -77,7 +77,7 @@ public class ProtocolTest extends JedisTestBase {
|
||||
public void integerReply() {
|
||||
InputStream is = new ByteArrayInputStream(":123\r\n".getBytes());
|
||||
Protocol protocol = new Protocol();
|
||||
int response = (Integer) protocol.read(new RedisInputStream(is));
|
||||
long response = (Long) protocol.read(new RedisInputStream(is));
|
||||
assertEquals(123, response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user