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