Try fix redis server in windows env
This commit is contained in:
parent
23599941e7
commit
65215ed8a0
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue