incr/decr operate on 64-bit numbers. Switching from Integer to Long

This commit is contained in:
Neil Gentleman
2010-11-23 16:52:18 -08:00
committed by Jonathan Leibiusky
parent a1815f3881
commit d18cc4bd13
20 changed files with 397 additions and 379 deletions

View File

@@ -35,7 +35,7 @@ public class ControlCommandsTest extends JedisCommandTestBase {
@Test
public void lastsave() throws InterruptedException {
int before = jedis.lastsave();
long before = jedis.lastsave();
String st = "";
while (!st.equals("OK")) {
try {
@@ -45,7 +45,7 @@ public class ControlCommandsTest extends JedisCommandTestBase {
}
}
int after = jedis.lastsave();
long after = jedis.lastsave();
assertTrue((after - before) > 0);
}
@@ -58,7 +58,8 @@ public class ControlCommandsTest extends JedisCommandTestBase {
@Test
public void monitor() {
jedis.monitor(new JedisMonitor() {
public void onCommand(String command) {
@Override
public void onCommand(String command) {
assertTrue(command.contains("OK"));
client.disconnect();
}