Pipeline tests are authenticated. bgrewriteaof command test now supports scheduled status.

This commit is contained in:
ivos
2011-12-13 21:33:14 +01:00
parent b7ee1fe29a
commit d97f30a01a
2 changed files with 14 additions and 4 deletions

View File

@@ -29,8 +29,13 @@ public class ControlCommandsTest extends JedisCommandTestBase {
@Test
public void bgrewriteaof() {
String scheduled = "Background append only file rewriting scheduled";
String started = "Background append only file rewriting started";
String status = jedis.bgrewriteaof();
assertEquals("Background append only file rewriting started", status);
boolean ok = status.equals(scheduled) || status.equals(started);
assertTrue(ok);
}
@Test