From 2c41132c5c59340061e4cf5dfc792d1c0e84773c Mon Sep 17 00:00:00 2001 From: Jonathan Leibiusky Date: Mon, 6 Sep 2010 14:54:25 -0300 Subject: [PATCH] Remnoved 2 assertions that made tests to fail with the latest version of redis. It was testing too much --- .../jedis/tests/commands/AllKindOfValuesCommandsTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java b/src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java index cabd461..03e4de2 100644 --- a/src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java +++ b/src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java @@ -140,9 +140,6 @@ public class AllKindOfValuesCommandsTest extends JedisCommandTestBase { jedis.set("foo", "bar"); status = jedis.expire("foo", 20); assertEquals(1, status); - - status = jedis.expire("foo", 20); - assertEquals(0, status); } @Test @@ -156,10 +153,6 @@ public class AllKindOfValuesCommandsTest extends JedisCommandTestBase { unixTime = (System.currentTimeMillis() / 1000L) + 20; status = jedis.expireAt("foo", unixTime); assertEquals(1, status); - - unixTime = (System.currentTimeMillis() / 1000L) + 20; - status = jedis.expireAt("foo", unixTime); - assertEquals(0, status); } @Test