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
fix ipv6 display in startup info log #2285
Conversation
Maybe tests as well. Can we run IPv6 on CI? |
What test should we add - scanning the infolog output for verification? |
Take and modify one of the existing tests that check for the Goin' Fast log entry. This alone should give full coverage on this diff and avoid the same regression happening again. No need to use the test client to do any requests (although ultimately that should be done as well, if we really have NO IPv6 tests currently). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, unless you want to add that test... But this already hits the coverage target because it is missing only half a line now :D
Will do. Also, looks like we don't have a test for actually specifying an ipv4 address, though we do have one for starting with default (127.0.0.1) |
Code Climate has analyzed commit 60b7086 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (86% is the threshold). This pull request will bring the total coverage in the repository to 86.5% (0.0% change). View more on Code Climate. |
* fix ipv6 display in startup info log * refactored to oneliner by request * Added test for passing ipv4 host * Added test for passing ipv6 any host * Added test for passing ipv6 loopback host
Resolves #2284 - checks for presence of a colon in the host, which is only legal in ipv6 address types, and brackets it accordingly