it might happen that it is alredy saving, so make sure that test won't fail because of this
This commit is contained in:
@@ -12,8 +12,13 @@ import redis.clients.jedis.exceptions.JedisDataException;
|
|||||||
public class ControlCommandsTest extends JedisCommandTestBase {
|
public class ControlCommandsTest extends JedisCommandTestBase {
|
||||||
@Test
|
@Test
|
||||||
public void save() {
|
public void save() {
|
||||||
|
try {
|
||||||
String status = jedis.save();
|
String status = jedis.save();
|
||||||
assertEquals("OK", status);
|
assertEquals("OK", status);
|
||||||
|
} catch (JedisDataException e) {
|
||||||
|
assertTrue("ERR Background save already in progress"
|
||||||
|
.equalsIgnoreCase(e.getMessage()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user