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/26 22:49:32 UTC
[incubator-servicecomb-saga] branch spring-boot-2 updated: 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 spring-boot-2
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/spring-boot-2 by this push:
new 642f5ba SCB-410 Fixed the CI build error
642f5ba is described below
commit 642f5ba694a6aca112b76f998db802282bf985be
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.