feat: swagger定时同步

This commit is contained in:
wenyann 2021-01-22 17:06:03 +08:00
parent 8e1f189ce9
commit 3048d8b52d
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import java.net.URLConnection;
public class UrlTestUtils {
/* public static boolean testUrlWithTimeOut(String urlString, int timeOutMillSeconds) {
public static boolean testUrlWithTimeOut(String urlString, int timeOutMillSeconds) {
try {
URL url = new URL(urlString);
URLConnection co = url.openConnection();
@ -16,5 +16,5 @@ public class UrlTestUtils {
LogUtil.error(e);
return false;
}
}*/
}
}

View File

@ -80,10 +80,10 @@ public class DockerTestEngine extends AbstractEngine {
}
// docker 不能从 localhost 中下载文件
/* if (StringUtils.contains(metersphereUrl, "http://localhost")
if (StringUtils.contains(metersphereUrl, "http://localhost")
|| !UrlTestUtils.testUrlWithTimeOut(metersphereUrl, 1000)) {
MSException.throwException(Translator.get("run_load_test_file_init_error"));
}*/
}
Map<String, String> env = new HashMap<>();
env.put("RATIO", "" + ratio);