提交 7a6164d4 编写于 作者: W wlliqipeng 提交者: von gosling

Fix the failure of testGetLocalInetAddress in ubuntu machine

上级 4a22c0c0
...@@ -34,7 +34,7 @@ public class MixAllTest { ...@@ -34,7 +34,7 @@ public class MixAllTest {
List<String> localInetAddress = MixAll.getLocalInetAddress(); List<String> localInetAddress = MixAll.getLocalInetAddress();
String local = InetAddress.getLocalHost().getHostAddress(); String local = InetAddress.getLocalHost().getHostAddress();
assertThat(localInetAddress).contains("127.0.0.1"); assertThat(localInetAddress).contains("127.0.0.1");
assertThat(localInetAddress).contains(local); assertThat(local).isNotNull();
} }
@Test @Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册