Commit 4805e6e6 authored by Davide Agnello's avatar Davide Agnello

vSphere cloud provider: re-use session for vCenter logins

Resolves #34491
parent ab14c31b
......@@ -118,11 +118,11 @@ func TestVSphereLogin(t *testing.T) {
defer cancel()
// Create vSphere client
c, err := vsphereLogin(vs.cfg, ctx)
err = vSphereLogin(vs, ctx)
if err != nil {
t.Errorf("Failed to create vSpere client: %s", err)
}
defer c.Logout(ctx)
defer vs.client.Logout(ctx)
}
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