commit | 40a6ced7a18d1a7d3b8ed12461c54f2b021ad98b | [log] [tgz] |
---|---|---|
author | 吴伟杰 <root496879118@me.com> | Wed Nov 18 12:30:36 2020 +0800 |
committer | GitHub <noreply@github.com> | Wed Nov 18 12:30:36 2020 +0800 |
tree | bafe0ed29d46eb65fa7a15b9b3bd1ec21967205a | |
parent | 66ae59ec1d8c9ae68628f3d0bd08efbc85c6108b [diff] |
Adjust delay for HttpJobExecutorTest (#1722)
diff --git a/elasticjob-ecosystem/elasticjob-executor/elasticjob-executor-type/elasticjob-http-executor/src/test/java/org/apache/shardingsphere/elasticjob/http/executor/fixture/InternalController.java b/elasticjob-ecosystem/elasticjob-executor/elasticjob-executor-type/elasticjob-http-executor/src/test/java/org/apache/shardingsphere/elasticjob/http/executor/fixture/InternalController.java index 6c58132..6a289e8 100644 --- a/elasticjob-ecosystem/elasticjob-executor/elasticjob-executor-type/elasticjob-http-executor/src/test/java/org/apache/shardingsphere/elasticjob/http/executor/fixture/InternalController.java +++ b/elasticjob-ecosystem/elasticjob-executor/elasticjob-executor-type/elasticjob-http-executor/src/test/java/org/apache/shardingsphere/elasticjob/http/executor/fixture/InternalController.java
@@ -18,6 +18,7 @@ package org.apache.shardingsphere.elasticjob.http.executor.fixture; import lombok.extern.slf4j.Slf4j; +import org.apache.shardingsphere.elasticjob.infra.concurrent.BlockUtils; import org.apache.shardingsphere.elasticjob.restful.Http; import org.apache.shardingsphere.elasticjob.restful.RestfulController; import org.apache.shardingsphere.elasticjob.restful.annotation.Mapping; @@ -64,16 +65,13 @@ } /** - * Post with 3 mills delay for request IO Exception. + * Post with 100 mills delay for request IO Exception. * * @return "ejob" */ @Mapping(method = Http.POST, path = "/postWithTimeout") public String postWithTimeout() { - try { - Thread.sleep(3); - } catch (InterruptedException ignore) { - } + BlockUtils.waitingShortTime(); return "ejob"; } }