Fixed the Max Memory Limit for the Embedded Redis Server
This commit is contained in:
@@ -38,7 +38,7 @@ public class RedisKeyCommandsIntegrationTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void startRedisServer() throws IOException {
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build();
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
|
||||
redisServer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public class RedisTemplateListOpsIntegrationTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void startRedisServer() throws IOException {
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 128M").build();
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 128M").build();
|
||||
redisServer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public class RedisTemplateValueOpsIntegrationTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void startRedisServer() throws IOException {
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build();
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
|
||||
redisServer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class RedisMessageListenerIntegrationTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void startRedisServer() throws IOException {
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build();
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
|
||||
redisServer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class StudentRepositoryIntegrationTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void startRedisServer() throws IOException {
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 128M").build();
|
||||
redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 128M").build();
|
||||
redisServer.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user