Commit 3ef2158a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #34892 from dagnello/vsphere-session

Automatic merge from submit-queue vSphere cloud provider: re-use session for vCenter logins This change allows for the re-use of a vCenter client session. Addresses #34491
parents 453bfa1f 4805e6e6
...@@ -118,11 +118,11 @@ func TestVSphereLogin(t *testing.T) { ...@@ -118,11 +118,11 @@ func TestVSphereLogin(t *testing.T) {
defer cancel() defer cancel()
// Create vSphere client // Create vSphere client
c, err := vsphereLogin(vs.cfg, ctx) err = vSphereLogin(vs, ctx)
if err != nil { if err != nil {
t.Errorf("Failed to create vSpere client: %s", err) t.Errorf("Failed to create vSpere client: %s", err)
} }
defer c.Logout(ctx) defer vs.client.Logout(ctx)
} }
func TestZones(t *testing.T) { func TestZones(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment