opentelemetry-collector
opentelemetry-collector copied to clipboard
Unit tests not getting passed for v0.106.1 version
Hi team, I am trying to run Unit tests for go.opentelemetry.io/[email protected] by using the command "go test ./...".
I am getting the below error ->
=== RUN TestGetAvailableLocalIpv6Address testutil.go:116: Error Trace: /root/opentelemetry-collector/internal/testutil/testutil.go:116 /root/opentelemetry-collector/internal/testutil/testutil.go:72 /root/opentelemetry-collector/internal/testutil/testutil_test.go:33 Error: Received unexpected error: listen tcp [::1]:0: bind: cannot assign requested address Test: TestGetAvailableLocalIpv6Address Messages: Failed to get a free local port --- FAIL: TestGetAvailableLocalIpv6Address (0.00s) === RUN TestCreateExclusionsList --- PASS: TestCreateExclusionsList (0.00s) FAIL FAIL go.opentelemetry.io/collector/internal/testutil 0.007s FAIL
Please let me know if I am missing something.
It looks like it's failing to get a free port on your machine. I haven't seen this failure before. Can you give more details regarding your setup?
Failed to get a free local port
Any reproduction steps would be great.
Closing as not planned. Please comment if you have more information, thanks!