fixes test that won't pass if local hostname unresolvable via reverse dns (#4930)

Signed-off-by: Justin Florentine <justin+github@florentine.us>

Signed-off-by: Justin Florentine <justin+github@florentine.us>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/4937/head
Justin Florentine 2 years ago committed by GitHub
parent 119025026d
commit b63f3883ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ethereum/permissioning/src/test/java/org/hyperledger/besu/ethereum/permissioning/node/provider/SyncStatusNodePermissioningProviderTest.java

@ -269,7 +269,7 @@ public class SyncStatusNodePermissioningProviderTest {
.listeningPort(9999)
.disableDiscovery()
.ipAddress(
InetAddress.getLocalHost().getHostName(),
InetAddress.getLocalHost().getCanonicalHostName(),
ImmutableEnodeDnsConfiguration.builder()
.dnsEnabled(true)
.updateEnabled(true)
@ -283,7 +283,7 @@ public class SyncStatusNodePermissioningProviderTest {
.listeningPort(9999)
.disableDiscovery()
.ipAddress(
"127.0.0.1",
InetAddress.getLocalHost().getHostAddress(),
ImmutableEnodeDnsConfiguration.builder()
.dnsEnabled(true)
.updateEnabled(true)

Loading…
Cancel
Save