You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by se...@apache.org on 2018/01/11 06:56:06 UTC

[incubator-servicecomb-saga] 02/04: SCB-213 extended timeout to avoid test failure

This is an automated email from the ASF dual-hosted git repository.

seanyinx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git

commit 815ecac117d1652241499bf8e47e091050b248be
Author: Eric Lee <da...@huawei.com>
AuthorDate: Wed Jan 10 16:39:59 2018 +0800

    SCB-213 extended timeout to avoid test failure
    
    Signed-off-by: Eric Lee <da...@huawei.com>
---
 .../org/apache/servicecomb/saga/alpha/core/TxConsistentServiceTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alpha/alpha-core/src/test/java/org/apache/servicecomb/saga/alpha/core/TxConsistentServiceTest.java b/alpha/alpha-core/src/test/java/org/apache/servicecomb/saga/alpha/core/TxConsistentServiceTest.java
index ad448da..cc5c520 100644
--- a/alpha/alpha-core/src/test/java/org/apache/servicecomb/saga/alpha/core/TxConsistentServiceTest.java
+++ b/alpha/alpha-core/src/test/java/org/apache/servicecomb/saga/alpha/core/TxConsistentServiceTest.java
@@ -114,7 +114,7 @@ public class TxConsistentServiceTest {
     TxEvent compensateEvent1 = eventOf(TxCompensatedEvent, "service a".getBytes(), localTxId1, "method a");
     consistentService.handle(compensateEvent1);
 
-    assertThat(events.size(), is(8));
+    await().atMost(1, SECONDS).until(() -> events.size() == 8);
     assertThat(events.get(events.size() - 1).type(), is(SagaEndedEvent.name()));
   }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.