提交 4824ca71 编写于 作者: 小傅哥's avatar 小傅哥

feat:测试代码

上级 27e201ca
...@@ -29,7 +29,7 @@ public class Application { ...@@ -29,7 +29,7 @@ public class Application {
* curl http://localhost:8091/api/hystrix/query_order_info * curl http://localhost:8091/api/hystrix/query_order_info
*/ */
@HystrixCommand(commandProperties = { @HystrixCommand(commandProperties = {
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "500") @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "550")
}, fallbackMethod = "queryOrderInfo_error" }, fallbackMethod = "queryOrderInfo_error"
) )
@RequestMapping(value = "query_order_info", method = RequestMethod.GET) @RequestMapping(value = "query_order_info", method = RequestMethod.GET)
...@@ -63,7 +63,7 @@ public class Application { ...@@ -63,7 +63,7 @@ public class Application {
for (int i = 0; i < 200; i++) { for (int i = 0; i < 200; i++) {
try { try {
emitter.send("hi xfg-dev-tech-grafana\r\n" + i); emitter.send("hi xfg-dev-tech-grafana\r\n" + i);
Thread.sleep(150); Thread.sleep(250);
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册