This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch SCB-692
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
The following commit(s) were added to refs/heads/SCB-692 by this push:
new d80e835 Fixed the ServiceCenterDiscoveryRestTransportTest
d80e835 is described below
commit d80e83510f369f5aaded2d2de6e0d5dc16bf74eb
Author: Willem Jiang <[email protected]>
AuthorDate: Wed Jul 25 14:03:05 2018 +0800
Fixed the ServiceCenterDiscoveryRestTransportTest
---
.../service/center/ServiceCenterDiscoveryRestTransportTest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/saga-discovery/saga-discovery-servicecenter/src/test/java/org/apache/servicecomb/saga/discovery/service/center/ServiceCenterDiscoveryRestTransportTest.java
b/saga-discovery/saga-discovery-servicecenter/src/test/java/org/apache/servicecomb/saga/discovery/service/center/ServiceCenterDiscoveryRestTransportTest.java
index 15ffc02..493db76 100644
---
a/saga-discovery/saga-discovery-servicecenter/src/test/java/org/apache/servicecomb/saga/discovery/service/center/ServiceCenterDiscoveryRestTransportTest.java
+++
b/saga-discovery/saga-discovery-servicecenter/src/test/java/org/apache/servicecomb/saga/discovery/service/center/ServiceCenterDiscoveryRestTransportTest.java
@@ -62,9 +62,7 @@ public class ServiceCenterDiscoveryRestTransportTest {
}
private static void setUpLocalRegistry() {
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- URL resource = loader.getResource("registry.yaml");
- System.setProperty(LOCAL_REGISTRY_FILE_KEY, resource.getPath());
+ System.setProperty(LOCAL_REGISTRY_FILE_KEY,"notExistJustForceLocal");
}
@Test