From 45343af2ad074dde25c14a83a1ee96472aa91178 Mon Sep 17 00:00:00 2001 From: hujie Date: Thu, 11 Oct 2018 20:01:32 +0800 Subject: [PATCH] CI No environment 5 --- .../rocketmq/acl/plug/engine/PlainAclPlugEngineTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/acl-plug/src/test/java/org/apache/rocketmq/acl/plug/engine/PlainAclPlugEngineTest.java b/acl-plug/src/test/java/org/apache/rocketmq/acl/plug/engine/PlainAclPlugEngineTest.java index 214f6f0e..9bdde159 100644 --- a/acl-plug/src/test/java/org/apache/rocketmq/acl/plug/engine/PlainAclPlugEngineTest.java +++ b/acl-plug/src/test/java/org/apache/rocketmq/acl/plug/engine/PlainAclPlugEngineTest.java @@ -20,7 +20,6 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; -import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -61,10 +60,7 @@ public class PlainAclPlugEngineTest { String home = System.getProperty(MixAll.ROCKETMQ_HOME_PROPERTY, System.getenv(MixAll.ROCKETMQ_HOME_ENV)); InputStream fis = null; if (home == null) { - URL url = PlainAclPlugEngineTest.class.getResource("/"); - home = url.toString(); - home = home.substring(0, home.length() - 1).replace("file:/", "").replace("target/test-classes", ""); - home = home + "src/test/resources"; + home = "/home/travis/build/githublaohu/rocketmq/acl-plug/src/test/resources"; String filePath = home + "/conf/transport.yml"; fis = new FileInputStream(new File(filePath)); } else { -- GitLab