make JedisTest fast
This commit is contained in:
@@ -52,9 +52,7 @@ public class JedisTest extends JedisCommandTestBase {
|
|||||||
jedis = new Jedis("localhost", 6379, 15000);
|
jedis = new Jedis("localhost", 6379, 15000);
|
||||||
jedis.auth("foobared");
|
jedis.auth("foobared");
|
||||||
jedis.configSet("timeout", "1");
|
jedis.configSet("timeout", "1");
|
||||||
// we need to sleep a long time since redis check for idle connections
|
Thread.sleep(2000);
|
||||||
// every 10 seconds or so
|
|
||||||
Thread.sleep(20000);
|
|
||||||
jedis.hmget("foobar", "foo");
|
jedis.hmget("foobar", "foo");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user