-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
MockCollector test bug #1002
Comments
maybe we should bind to a different address that is more likely to be invalid. The reason the assertion is there is to have code coverage of the error handling. |
Good idea. An easy choice would be an overflow value like "256.0.0.0" instead. |
Update: Related failures.
They rely on 1.2.3 being a bad address. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirement - what kind of business use case are you trying to solve?
On my desktop (Arch Linux/Manjaro), I consistently get the following test error:
Problem - what in Jaeger blocks you from solving the requirement?
The test expects binding to 127.0.0 to fail. After some digging with strace I discovered that somehow the system extends the supposedly broken address of 127.0.0 to be 127.0.0.0. Then, strace shows this:
bind(3, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.0")}, 16) = 0
.Proposal - what do you suggest to solve the problem or improve the existing situation?
Remove the assertion that requires this bind to fail seeing as it is not portable/correct.
Any open questions to address
Find out why this is OK in Travis but not my version of Go (1.10.3) and Linux (Linux 4.18.0-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux).
The text was updated successfully, but these errors were encountered: