Try fix redis server in windows env

This commit is contained in:
Albumen Kevin 2024-05-24 10:31:00 +08:00
parent 23599941e7
commit 65215ed8a0
1 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import org.apache.commons.lang3.SystemUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
@ -69,7 +68,7 @@ class RedisMetadataReportTest {
redisServer = newRedisServer()
.port(redisPort)
// set maxheap to fix Windows error 0x70 while starting redis
.settingIf(SystemUtils.IS_OS_WINDOWS, "maxheap 128mb")
// .settingIf(SystemUtils.IS_OS_WINDOWS, "maxheap 128mb")
.settingIf(usesAuthentication, "requirepass " + REDIS_PASSWORD)
.build();
this.redisServer.start();