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

TestNetNative/ResolveUDPAddr failure on Debian based linux #51

Closed
at-wat opened this issue Jan 13, 2020 · 1 comment · Fixed by #52
Closed

TestNetNative/ResolveUDPAddr failure on Debian based linux #51

at-wat opened this issue Jan 13, 2020 · 1 comment · Fixed by #52

Comments

@at-wat
Copy link
Member

at-wat commented Jan 13, 2020

--- FAIL: TestNetNative (0.01s)
    --- PASS: TestNetNative/Interfaces (0.00s)
    --- FAIL: TestNetNative/ResolveUDPAddr (0.00s)
        net_native_test.go:46: 
            	Error Trace:	net_native_test.go:46
            	Error:      	Not equal: 
            	            	expected: "127.0.0.1"
            	            	actual  : "127.0.1.1"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
            	            	@@ -1 +1 @@
            	            	-127.0.0.1
            	            	+127.0.1.1
            	Test:       	TestNetNative/ResolveUDPAddr
            	Messages:   	should match

Debian based linux uses 127.0.1.1 as a local loopback address in some condition of the install.
https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution

ref: #49

@at-wat
Copy link
Member Author

at-wat commented Jan 13, 2020

/etc/hosts of Travis-CI Ubuntu Bionic

127.0.1.1 localhost localhost ip4-loopback 
127.0.0.1 localhost nettuno travis vagrant travis-job-99238377-7e10-461c-8ccc-6fdee72e400f 

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 a pull request may close this issue.

1 participant