Skip to content
This repository
Browse code

make bgsave test wait for bgrewriteaof to finish

  • Loading branch information...
commit 1b679d35925b020d1ad59c4f446b871eff7cd067 1 parent d99050f
Will Glozer authored
4 README
@@ -5,6 +5,8 @@ lettuce - A scalable Java Redis client
5 5 as BLPOP, and MULTI/EXEC. Multiple connections are efficiently managed by the
6 6 excellent netty NIO framework.
7 7
  8 + This version of lettuce has been tested against redis 2.4.2
  9 +
8 10 Basic Usage
9 11
10 12 RedisClient client = new RedisClient("localhost")
@@ -54,5 +56,5 @@ Maven Artifacts
54 56 <dependency>
55 57 <groupId>com.lambdaworks</groupId>
56 58 <artifactId>lettuce</artifactId>
57   - <version>1.0.0</version>
  59 + <version>1.1.0</version>
58 60 </dependency>
3  src/test/java/com/lambdaworks/redis/ServerCommandTest.java
@@ -19,6 +19,9 @@ public void bgrewriteaof() throws Exception {
19 19
20 20 @Test
21 21 public void bgsave() throws Exception {
  22 + while (redis.info().contains("bgrewriteaof_in_progress:1")) {
  23 + Thread.sleep(100);
  24 + }
22 25 String msg = "Background saving started";
23 26 assertEquals(msg, redis.bgsave());
24 27 }

0 comments on commit 1b679d3

Please sign in to comment.
Something went wrong with that request. Please try again.