From 59da07a054f17516740d54381b1522408e9c0c69 Mon Sep 17 00:00:00 2001 From: garyschulte Date: Tue, 30 Jan 2024 19:58:29 -0800 Subject: [PATCH] remove dupe asserts Signed-off-by: garyschulte --- .../test/java/org/hyperledger/besu/util/NetworkUtilityTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/src/test/java/org/hyperledger/besu/util/NetworkUtilityTest.java b/util/src/test/java/org/hyperledger/besu/util/NetworkUtilityTest.java index 6db0f3fd225..0f60eb6769b 100644 --- a/util/src/test/java/org/hyperledger/besu/util/NetworkUtilityTest.java +++ b/util/src/test/java/org/hyperledger/besu/util/NetworkUtilityTest.java @@ -57,7 +57,6 @@ public void assertIpV4Address() { assertThat(NetworkUtility.isIpV4Address("127.0.0.")).isFalse(); assertThat(NetworkUtility.isIpV4Address("256.256.256.256")).isFalse(); // ipv6 compatible ipv4 address - assertThat(NetworkUtility.isIpV4Address("0000:0000:0000:0000:0000:ffff:c0a8:5801")).isTrue(); assertThat(NetworkUtility.isIpV4Address("::ffff:c0a8:5801")).isTrue(); assertThat(NetworkUtility.isIpV4Address("0:0:0:0:0:ffff:c0a8:5801")).isTrue(); assertThat(NetworkUtility.isIpV4Address("0000:0000:0000:0000:0000:ffff:c0a8:5801")).isTrue(); @@ -69,6 +68,5 @@ public void assertIpV6Address() { assertThat(NetworkUtility.isIpV6Address("::")).isTrue(); assertThat(NetworkUtility.isIpV6Address("2001:db8:3333:4444:5555:6666:7777:8888")).isTrue(); assertThat(NetworkUtility.isIpV6Address("00:00::00:00::00:00")).isFalse(); - assertThat(NetworkUtility.isIpV6Address("00:00::00:00::00:00")).isFalse(); } }