opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

Unit tests not getting passed for v0.106.1 version

Open imtavish04 opened this issue 1 year ago • 1 comments
trafficstars

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.

imtavish04 avatar Aug 20 '24 12:08 imtavish04

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.

codeboten avatar Aug 27 '24 04:08 codeboten

Closing as not planned. Please comment if you have more information, thanks!

atoulme avatar Sep 12 '24 16:09 atoulme