wujimin closed pull request #1043: [SCB-1083]fix ut random fail on slow machine
URL: https://github.com/apache/servicecomb-java-chassis/pull/1043
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestWeightedResponseTimeRuleExt.java
b/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestWeightedResponseTimeRuleExt.java
index 0d4e0031f..10dfed3a5 100644
---
a/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestWeightedResponseTimeRuleExt.java
+++
b/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestWeightedResponseTimeRuleExt.java
@@ -121,6 +121,6 @@ public void testBenchmarkRobin() {
}
long taken = System.currentTimeMillis() - begin;
System.out.println("taken " + taken);
- Assert.assertEquals("actually taken: " + taken, taken < 200 * 2, true); //
5 * times make slow machine happy
+ Assert.assertEquals("actually taken: " + taken, taken < 200 * 5, true); //
5 * times make slow machine happy
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services