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 {
|
||||
@Test
|
||||
public void save() {
|
||||
try {
|
||||
String status = jedis.save();
|
||||
assertEquals("OK", status);
|
||||
} catch (JedisDataException e) {
|
||||
assertTrue("ERR Background save already in progress"
|
||||
.equalsIgnoreCase(e.getMessage()));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user