diff --git a/common/src/test/java/io/netty/util/NetworkConstantsTest.java b/common/src/test/java/io/netty/util/NetworkConstantsTest.java index 695cd5a768..f9f75ffda7 100644 --- a/common/src/test/java/io/netty/util/NetworkConstantsTest.java +++ b/common/src/test/java/io/netty/util/NetworkConstantsTest.java @@ -27,7 +27,7 @@ public class NetworkConstantsTest { @Test public void testLocalhost() throws UnknownHostException { assertNotNull(NetworkConstants.LOCALHOST); - assertSame(NetworkConstants.LOCALHOST, InetAddress.getLocalHost()); + assertEquals(NetworkConstants.LOCALHOST, InetAddress.getLocalHost()); } @Test