rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vongosl...@apache.org
Subject [rocketmq] branch develop updated: Fix the failure of testGetLocalInetAddress in ubuntu machine
Date Fri, 19 Oct 2018 06:28:44 GMT
This is an automated email from the ASF dual-hosted git repository.

vongosling 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 7a6164d  Fix the failure of testGetLocalInetAddress in ubuntu machine
7a6164d is described below

commit 7a6164d4db0dbed88d5ce90201c7f4af88470219
Author: wlliqipeng <qipengli.lqp@alibaba-inc.com>
AuthorDate: Fri Oct 19 14:28:39 2018 +0800

    Fix the failure of testGetLocalInetAddress in ubuntu machine
---
 common/src/test/java/org/apache/rocketmq/common/MixAllTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/src/test/java/org/apache/rocketmq/common/MixAllTest.java b/common/src/test/java/org/apache/rocketmq/common/MixAllTest.java
index 3f04872..0d2dec6 100644
--- a/common/src/test/java/org/apache/rocketmq/common/MixAllTest.java
+++ b/common/src/test/java/org/apache/rocketmq/common/MixAllTest.java
@@ -34,7 +34,7 @@ public class MixAllTest {
         List<String> localInetAddress = MixAll.getLocalInetAddress();
         String local = InetAddress.getLocalHost().getHostAddress();
         assertThat(localInetAddress).contains("127.0.0.1");
-        assertThat(localInetAddress).contains(local);
+        assertThat(local).isNotNull();
     }
 
     @Test


Mime
View raw message