From cf79f34d70706d47daa40ee722dd971049b81d28 Mon Sep 17 00:00:00 2001 From: Anton Kachurin Date: Tue, 9 Jun 2020 10:27:13 +0300 Subject: [PATCH] Fix cluster deletion (#7) --- services/containers.go | 2 +- services/containers_test.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/services/containers.go b/services/containers.go index c8917e1..d6d1265 100644 --- a/services/containers.go +++ b/services/containers.go @@ -122,7 +122,7 @@ func (c *client) waitForClusterDelete(clusterID string) error { return golangsdk.WaitFor(600, func() (bool, error) { _, err := c.getClusterStatus(clusterID) if err != nil { - return true, err + return false, err } switch err.(type) { case golangsdk.ErrDefault404: diff --git a/services/containers_test.go b/services/containers_test.go index 6d543c1..ad4f900 100644 --- a/services/containers_test.go +++ b/services/containers_test.go @@ -76,8 +76,6 @@ func TestClient_ClusterLifecycle(t *testing.T) { VolumeType: "SATA", }, }, - MaxPods: 10, - EipCount: 1, PublicKey: kp.PublicKey, } nodeCount := 2