Skip to content

Commit

Permalink
Try DeleteClusterAndWait instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Mar 12, 2024
1 parent 0adcf25 commit f7f9fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ func dumpSpecResourcesAndCleanup(ctx context.Context, specName string, clusterPr
// While https://github.com/kubernetes-sigs/cluster-api/issues/2955 is addressed in future iterations, there is a chance
// that cluster variable is not set even if the cluster exists, so we are calling DeleteAllClustersAndWait
// instead of DeleteClusterAndWait
framework.DeleteAllClustersAndWait(ctx, framework.DeleteAllClustersAndWaitInput{
Client: clusterProxy.GetClient(),
Namespace: namespace.Name,
framework.DeleteClusterAndWait(ctx, framework.DeleteClusterAndWaitInput{
Client: clusterProxy.GetClient(),
Cluster: cluster,
}, intervalsGetter(specName, "wait-delete-cluster")...)

Byf("Deleting namespace used for hosting the %q test spec", specName)
Expand Down

0 comments on commit f7f9fab

Please sign in to comment.