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/07 08:02:57 UTC

[incubator-servicecomb-saga] branch master updated: Try to fix the PackIT test error

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 be39473  Try to fix the PackIT test error
be39473 is described below

commit be39473f7e13ca4fe90977f2dcc54c04fa40bd23
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Tue Aug 7 16:02:40 2018 +0800

    Try to fix the PackIT test error
---
 .../org/apache/servicecomb/saga/integration/pack/tests/PackIT.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/saga/integration/pack/tests/PackIT.java b/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/saga/integration/pack/tests/PackIT.java
index 2bc8e54..ca6376d 100644
--- a/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/saga/integration/pack/tests/PackIT.java
+++ b/integration-tests/pack-tests/src/test/java/org/apache/servicecomb/saga/integration/pack/tests/PackIT.java
@@ -290,7 +290,7 @@ public class PackIT {
 
     assertThat(entity.getStatusCode(), is(INTERNAL_SERVER_ERROR));
 
-    await().atMost(3, SECONDS).until(() -> eventRepo.count() == 11);
+    await().atMost(5, SECONDS).until(() -> eventRepo.count() == 11);
 
     List<String> distinctGlobalTxIds = eventRepo.findDistinctGlobalTxId();
     assertThat(distinctGlobalTxIds.size(), is(1));
@@ -312,10 +312,6 @@ public class PackIT {
     assertThat(events.get(9).type(), is("TxAbortedEvent"));
     assertThat(events.get(10).type(), is("TxCompensatedEvent"));
     
-    //assertThat(events.get(10).type(), is("SagaEndedEvent"));
-
-    System.out.println(compensatedMessages);
-
     assertThat(compensatedMessages, contains("Goodbye, " + TRESPASSER));
   }
 }