启动测试

This commit is contained in:
Captain.B 2020-03-25 10:05:32 +08:00
parent e1a1175cc9
commit bab322a8cb
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class DockerTestEngine extends AbstractEngine {
.reduce(Integer::sum)
.orElse(0);
if (threadNum > totalThreadNum - runningSumThreadNum) {
MSException.throwException("资源不足");
MSException.throwException("Insufficient resources");
}
List<Integer> resourceRatio = resourceList.stream()
.filter(r -> ResourceStatusEnum.VALID.name().equals(r.getStatus()))

View File

@ -38,7 +38,7 @@ public class KubernetesTestEngine extends AbstractEngine {
Integer maxConcurrency = clientCredential.getMaxConcurrency();
// 当前测试需要的并发数大于剩余的并发数报错
if (threadNum > maxConcurrency - sumThreadNum) {
MSException.throwException("资源不足");
MSException.throwException("Insufficient resources");
}
try {
EngineContext context = EngineFactory.createContext(loadTest, jmxFile, csvFiles, threadNum);