This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/master by this push: new cde8019 Added more wait time to fix the UT of LoadBalancedClusterMessageSenderTest in travis CI cde8019 is described below commit cde8019ef6a5e16c4e6ba1f12652e0d4867a51c3 Author: Willem Jiang <jiangni...@huawei.com> AuthorDate: Sun Mar 25 10:20:40 2018 +0800 Added more wait time to fix the UT of LoadBalancedClusterMessageSenderTest in travis CI --- CONTRIBUTING.md | 0 .../omega/connector/grpc/LoadBalancedClusterMessageSenderTest.java | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..e69de29 diff --git a/omega/omega-connector/omega-connector-grpc/src/test/java/org/apache/servicecomb/saga/omega/connector/grpc/LoadBalancedClusterMessageSenderTest.java b/omega/omega-connector/omega-connector-grpc/src/test/java/org/apache/servicecomb/saga/omega/connector/grpc/LoadBalancedClusterMessageSenderTest.java index fce9c0b..788cf96 100644 --- a/omega/omega-connector/omega-connector-grpc/src/test/java/org/apache/servicecomb/saga/omega/connector/grpc/LoadBalancedClusterMessageSenderTest.java +++ b/omega/omega-connector/omega-connector-grpc/src/test/java/org/apache/servicecomb/saga/omega/connector/grpc/LoadBalancedClusterMessageSenderTest.java @@ -176,7 +176,7 @@ public class LoadBalancedClusterMessageSenderTest { messageSender.send(event); startServerOnPort(deadPort); - await().atMost(3, SECONDS).until(() -> connected.get(deadPort).size() == 3); + await().atMost(5, SECONDS).until(() -> connected.get(deadPort).size() == 3); TxEvent abortedEvent = new TxAbortedEvent(globalTxId, localTxId, parentTxId, compensationMethod, new RuntimeException("oops")); messageSender.send(abortedEvent); @@ -186,7 +186,7 @@ public class LoadBalancedClusterMessageSenderTest { assertThat(eventsMap.get(deadPort).poll().toString(), is(event.toString())); assertThat(eventsMap.get(deadPort).poll().toString(), is(abortedEvent.toString())); - await().atMost(1, SECONDS).until(() -> compensated.contains(globalTxId)); + await().atMost(3, SECONDS).until(() -> compensated.contains(globalTxId)); } @Test (timeout = 1000) -- To stop receiving notification emails like this one, please contact ningji...@apache.org.