Skip to content

Commit

Permalink
corrects test that fail if hostname is set to something unresolvable
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <justin+github@florentine.us>
  • Loading branch information
jflo committed Jan 6, 2023
1 parent 3c02f51 commit 524830b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public void toURI_WithHostnameShouldWorkWhenDnsEnabledAndUpdateEnabled()
"enode://"
+ VALID_NODE_ID
+ "@"
+ InetAddress.getLocalHost().getHostName()
+ InetAddress.getLocalHost().getCanonicalHostName()
+ ":"
+ P2P_PORT;
final URI expectedURI = URI.create(enodeURLString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void syncStatusPermissioningCheckShouldAllowDNS() throws UnknownHostExcep
.listeningPort(9999)
.disableDiscovery()
.ipAddress(
InetAddress.getLocalHost().getHostName(),
InetAddress.getLocalHost().getCanonicalHostName(),
ImmutableEnodeDnsConfiguration.builder()
.dnsEnabled(true)
.updateEnabled(true)
Expand All @@ -283,7 +283,7 @@ public void syncStatusPermissioningCheckShouldAllowDNS() throws UnknownHostExcep
.listeningPort(9999)
.disableDiscovery()
.ipAddress(
"127.0.0.1",
InetAddress.getLocalHost().getHostAddress(),
ImmutableEnodeDnsConfiguration.builder()
.dnsEnabled(true)
.updateEnabled(true)
Expand Down

0 comments on commit 524830b

Please sign in to comment.