mirror of
https://github.com/corda/corda.git
synced 2025-03-15 00:36:49 +00:00
Address util tests: remove invalid test case (#4269)
Local host address can also be public
This commit is contained in:
parent
3cc1c47cf0
commit
bc48f8112e
@ -8,8 +8,6 @@ import kotlin.test.assertTrue
|
||||
class AddressUtilsTests {
|
||||
@Test
|
||||
fun `correctly determines if the provided address is public`() {
|
||||
val hostName = InetAddress.getLocalHost()
|
||||
assertFalse { AddressUtils.isPublic(hostName) }
|
||||
assertFalse { AddressUtils.isPublic("localhost") }
|
||||
assertFalse { AddressUtils.isPublic("127.0.0.1") }
|
||||
assertFalse { AddressUtils.isPublic("::1") }
|
||||
@ -28,4 +26,4 @@ class AddressUtilsTests {
|
||||
assertTrue { AddressUtils.isPublic("corda.net") }
|
||||
assertTrue { AddressUtils.isPublic("2607:f298:5:110f::eef:8729") }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user