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/03/27 14:36:47 UTC

[incubator-servicecomb-saga] 02/03: SCB-410 Fixed the CI build 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

commit d359d599a37a50df5c573a52ff6a16c4dca53207
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Tue Mar 27 06:49:19 2018 +0800

    SCB-410 Fixed the CI build error
---
 .../src/test/java/org/apache/servicecomb/saga/PackStepdefs.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java b/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
index 8d166ad..9ba2d75 100644
--- a/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
+++ b/acceptance-tests/acceptance-pack/src/test/java/org/apache/servicecomb/saga/PackStepdefs.java
@@ -19,6 +19,7 @@ package org.apache.servicecomb.saga;
 
 import static io.restassured.RestAssured.given;
 import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.apache.commons.lang3.StringUtils.isEmpty;
 import static org.awaitility.Awaitility.await;
 import static org.hamcrest.core.Is.is;
 
@@ -64,7 +65,11 @@ public class PackStepdefs implements En {
     });
 
     And("^Alpha is up and running$", () -> {
-      String infoURI = System.getProperty(INFO_SERVICE_URI, "/info");
+      String infoURI = System.getProperty(INFO_SERVICE_URI);
+      if (isEmpty(infoURI)) {
+        infoURI = "/info";
+      }
+      log.info("The service uri is " + infoURI);
       probe(System.getProperty(ALPHA_REST_ADDRESS), infoURI);
     });
 

-- 
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.