Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid reverse DNS lookup in BtcNodeConverterTest #5083

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

stejbac
Copy link
Contributor

@stejbac stejbac commented Jan 15, 2021

Prevent failure of testConvertClearNode() on some machines, caused by use of InetAddress.getHostName on the mock peer address. This does a reverse DNS lookup and potentially returns something other than the expected "192.168.0.1" string. (For example, on my current local network I get "BrightBox.ee".)

Also avoid an unnecessary getHostName() call on the SOCKS5 Tor proxy InetAddress in WalletConfig, by using an alternative InetSocketAddress constructor.

Prevent failure of testConvertClearNode() on some machines, caused by
use of InetAddress.getHostName on the mock peer address. This does a
reverse DNS lookup and potentially returns something other than the
expected "192.168.0.1" string.

Also avoid an unnecessary getHostName() call on the SOCKS5 Tor proxy
InetAddress in WalletConfig, by using an alternative InetSocketAddress
constructor.
@stejbac
Copy link
Contributor Author

stejbac commented Jan 18, 2021

Rebasing onto a more recent version of master to force a rebuild...

@stejbac stejbac force-pushed the fix-btc-node-converter-test branch from bc72345 to 3dd552c Compare January 18, 2021 16:24
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ripcurlx ripcurlx merged commit 3d9e2a5 into bisq-network:master Jan 19, 2021
@ripcurlx ripcurlx added this to the v1.6.0 milestone Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants