You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/08/28 07:13:32 UTC

[incubator-servicecomb-saga] 01/02: SCB-856 Try to fix the CI test error with slower box

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

commit dac393b514eaea1f7f503e4052f54a5623f32cb1
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Tue Aug 28 15:12:37 2018 +0800

    SCB-856 Try to fix the CI test error with slower box
---
 .../apache/servicecomb/saga/alpha/tcc/server/AlphaTccServerTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alpha/alpha-server/src/test/java/org/apache/servicecomb/saga/alpha/tcc/server/AlphaTccServerTest.java b/alpha/alpha-server/src/test/java/org/apache/servicecomb/saga/alpha/tcc/server/AlphaTccServerTest.java
index a5030b1..2e6e1f2 100644
--- a/alpha/alpha-server/src/test/java/org/apache/servicecomb/saga/alpha/tcc/server/AlphaTccServerTest.java
+++ b/alpha/alpha-server/src/test/java/org/apache/servicecomb/saga/alpha/tcc/server/AlphaTccServerTest.java
@@ -120,7 +120,7 @@ public class AlphaTccServerTest {
         OmegaCallbacksRegistry.retrieve(serviceName, instanceId), is(instanceOf(GrpcOmegaTccCallback.class))
     );
     blockingStub.onDisconnected(serviceConfig);
-    assertThat(commandStreamObserver.isCompleted(), is(true));
+    await().atMost(2, SECONDS).until(()->commandStreamObserver.isCompleted());
   }
 
   private void awaitUntilConnected() {