提交 4db976af 编写于 作者: F Frankie Wu

Merge branch 'master' of ssh://192.168.8.22:58422/cat

...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
<res:useCss value="${res.css.local.health_css}" target="head-css" /> <res:useCss value="${res.css.local.health_css}" target="head-css" />
<br> <br>
<h2 style="text-align:center">健康指数:***</h2>
<div style="float: left;width:100%"> <div style="float: left;width:100%">
<div style="width: 33%; float: left;"> <div style="width: 33%; float: left;">
<table class="health"> <table class="health">
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<res:useJs value="${res.js.local.flotr2_js}" target="head-js" /> <res:useJs value="${res.js.local.flotr2_js}" target="head-js" />
<res:useJs value="${res.js.local.trendGraph_js}" target="head-js" /> <res:useJs value="${res.js.local.trendGraph_js}" target="head-js" />
<br> <br>
<h2 style="text-algin:center;">健康指数:***</h2>
<div style="float: left;width:100%"> <div style="float: left;width:100%">
<div style="width: 33%; float: left;"> <div style="width: 33%; float: left;">
<table class="health"> <table class="health">
......
...@@ -344,14 +344,16 @@ public class TaskConsumerTest { ...@@ -344,14 +344,16 @@ public class TaskConsumerTest {
latch.countDown(); latch.countDown();
new Thread(consumerTwo).start(); new Thread(consumerTwo).start();
latch.countDown(); latch.countDown();
Thread.sleep(500);
while (!consumerOne.isStopped()) { while (!consumerOne.isStopped()) {
Thread.sleep(10); Thread.sleep(500);
} }
while (!consumerTwo.isStopped()) { while (!consumerTwo.isStopped()) {
Thread.sleep(1500); Thread.sleep(500);
} }
Assert.assertEquals("[1, 8, 7, 10, 3, 1, 8, 4]", Arrays.toString(consumerOne.replayer.toArray())); Assert.assertEquals("[1, 8, 7, 10, 3, 1, 8, 4]", Arrays.toString(consumerOne.replayer.toArray()));
String consumerTwoResult = Arrays.toString(consumerTwo.replayer.toArray()); String consumerTwoResult = Arrays.toString(consumerTwo.replayer.toArray());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册