mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 13:09:28 +08:00
启动测试
This commit is contained in:
parent
e1a1175cc9
commit
bab322a8cb
@ -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()))
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user