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 2019/02/16 08:43:40 UTC

[servicecomb-pack] branch master updated: [SCB-1152] Fixed test case logic to determine defects

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/servicecomb-pack.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c4cc21  [SCB-1152] Fixed test case logic to determine defects
3c4cc21 is described below

commit 3c4cc21371452764b08e2ed2da484efc7a318064
Author: 张磊 <co...@gmail.com>
AuthorDate: Thu Feb 14 11:34:26 2019 +0800

    [SCB-1152] Fixed test case logic to determine defects
---
 .../apache/servicecomb/pack/alpha/server/AlphaIntegrationTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/alpha/alpha-server/src/test/java/org/apache/servicecomb/pack/alpha/server/AlphaIntegrationTest.java b/alpha/alpha-server/src/test/java/org/apache/servicecomb/pack/alpha/server/AlphaIntegrationTest.java
index 4b7b9ab..d80587c 100644
--- a/alpha/alpha-server/src/test/java/org/apache/servicecomb/pack/alpha/server/AlphaIntegrationTest.java
+++ b/alpha/alpha-server/src/test/java/org/apache/servicecomb/pack/alpha/server/AlphaIntegrationTest.java
@@ -414,7 +414,9 @@ public class AlphaIntegrationTest {
 
     await().atMost(2, SECONDS).until(() -> {
       List<TxEvent> events = eventRepo.findByGlobalTxId(globalTxId);
-      return eventRepo.count() == 5 && events.get(events.size() - 1).type().equals(SagaEndedEvent.name());
+      return eventRepo.count() == 5 &&
+              events.get(events.size() - 1).type().equals(SagaEndedEvent.name()) &&
+              !events.get(events.size() - 2).type().equals(SagaEndedEvent.name());
     });
 
     List<TxEvent> events = eventRepo.findByGlobalTxId(globalTxId);