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/07/25 08:12:05 UTC

[incubator-servicecomb-saga] 01/03: SCB-692 Fixed the ServiceCenterDiscoveryRestTransportTest

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

commit 100907ceb749aa7c045abe9999b833f8796dc2ca
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Wed Jul 25 14:03:05 2018 +0800

    SCB-692 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