diff --git a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/connection_test.go b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/connection_test.go index faa0a2d864..046b3de8a1 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/connection_test.go +++ b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/connection_test.go @@ -159,7 +159,7 @@ func TestWithValidThumbprint(t *testing.T) { func TestWithInvalidCaCertPath(t *testing.T) { connection := &vclib.VSphereConnection{ Hostname: "should-not-matter", - Port: "should-not-matter", + Port: "27015", // doesn't matter, but has to be a valid port CACert: "invalid-path", } @@ -172,7 +172,7 @@ func TestWithInvalidCaCertPath(t *testing.T) { func TestInvalidCaCert(t *testing.T) { connection := &vclib.VSphereConnection{ Hostname: "should-not-matter", - Port: "should-not-matter", + Port: "27015", // doesn't matter, but has to be a valid port CACert: fixtures.InvalidCertPath, }