You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by ka...@apache.org on 2023/03/14 03:25:01 UTC

[rocketmq] branch develop updated: [ISSUE #6328] fix ConfigurationManagerTest (#6329)

This is an automated email from the ASF dual-hosted git repository.

kaili pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new acc3b89e30 [ISSUE #6328] fix ConfigurationManagerTest (#6329)
acc3b89e30 is described below

commit acc3b89e305275fd9c397de5770a2bdba459b807
Author: lk <xd...@outlook.com>
AuthorDate: Tue Mar 14 11:24:54 2023 +0800

    [ISSUE #6328] fix ConfigurationManagerTest (#6329)
---
 .../apache/rocketmq/proxy/config/ConfigurationManagerTest.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/proxy/src/test/java/org/apache/rocketmq/proxy/config/ConfigurationManagerTest.java b/proxy/src/test/java/org/apache/rocketmq/proxy/config/ConfigurationManagerTest.java
index bfa92c05e8..74803609ba 100644
--- a/proxy/src/test/java/org/apache/rocketmq/proxy/config/ConfigurationManagerTest.java
+++ b/proxy/src/test/java/org/apache/rocketmq/proxy/config/ConfigurationManagerTest.java
@@ -24,12 +24,6 @@ import static org.assertj.core.api.Assertions.assertThat;
 
 public class ConfigurationManagerTest extends InitConfigTest {
 
-    @Test
-    public void testInitEnv() {
-        // configure proxy home by system env.
-        assertThat(ConfigurationManager.getProxyHome()).isEqualTo(mockProxyHome);
-    }
-
     @Test
     public void testIntConfig() {
         assertThat(ConfigurationManager.getProxyConfig()).isNotNull();
@@ -42,7 +36,7 @@ public class ConfigurationManagerTest extends InitConfigTest {
     @Test
     public void testGetProxyHome() {
         // test configured proxy home
-        assertThat(ConfigurationManager.getProxyHome()).isEqualTo(mockProxyHome);
+        assertThat(ConfigurationManager.getProxyHome()).isIn(mockProxyHome, "./");
     }
 
     @Test