make list command tests fast
This commit is contained in:
@@ -434,6 +434,8 @@ public class ListCommandsTest extends JedisCommandTestBase {
|
|||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
result = jedis.blpop(1, "foo");
|
result = jedis.blpop(1, "foo");
|
||||||
|
System.out.println("sddssddssd");
|
||||||
|
|
||||||
assertNotNull(result);
|
assertNotNull(result);
|
||||||
assertEquals(2, result.size());
|
assertEquals(2, result.size());
|
||||||
assertEquals("foo", result.get(0));
|
assertEquals("foo", result.get(0));
|
||||||
@@ -594,7 +596,7 @@ public class ListCommandsTest extends JedisCommandTestBase {
|
|||||||
(new Thread(new Runnable() {
|
(new Thread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(2000);
|
Thread.sleep(100);
|
||||||
Jedis j = createJedis();
|
Jedis j = createJedis();
|
||||||
j.lpush("foo", "a");
|
j.lpush("foo", "a");
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user