Details
-
Task
-
Resolution: Unresolved
-
Minor
-
7.1.0
-
None
-
1
Description
What is the issue?
I was running the tools-common unit tests locally on the Neo branch and the TestConnectionStringResolve unit test failed with the following error:
ok github.com/couchbase/tools-common/aprov 0.017s coverage: 100.0% of statements
|
ok github.com/couchbase/tools-common/cbrest 10.474s coverage: 85.5% of statements
|
ok github.com/couchbase/tools-common/cbvalue 0.013s coverage: 100.0% of statements
|
-test.shuffle 1652093432812038132
|
--- FAIL: TestConnectionStringResolve (0.00s)
|
--- FAIL: TestConnectionStringResolve/ValidMultipleHostsSchemeWithPort (0.00s)
|
connection_string_test.go:376:
|
Error Trace: connection_string_test.go:376
|
Error: Received unexpected error:
|
listen udp4 127.0.0.1:43567: bind: address already in use
|
Test: TestConnectionStringResolve/ValidMultipleHostsSchemeWithPort
|
FAIL
|
coverage: 80.4% of statements
|
FAIL github.com/couchbase/tools-common/connstr 0.015s
|
ok github.com/couchbase/tools-common/elutil 0.608s coverage: 77.8% of statements
|
ok github.com/couchbase/tools-common/envvar 0.018s coverage: 89.7% of statements
|
ok github.com/couchbase/tools-common/errdefs 0.015s coverage: 90.0% of statements
|
It only failed once and I couldn't reproduce it again by re-running the unit tests again. We need to check what caused it to fail and fix the test/related code if it's not a transient issue.