Skip to content

Commit

Permalink
clusterDeployment: adjust delete() returns
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Oct 21, 2024
1 parent 5d2afce commit 56d7883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/hive/clusterdeployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ func (builder *ClusterDeploymentBuilder) Delete() error {
builder.Definition.Name, builder.Definition.Namespace)

if !builder.Exists() {
glog.V(100).Infof("clusterdeployment cannot be deleted because it does not exist")
glog.V(100).Infof("clusterdeployment %s in namespace %s does not exist",
builder.Definition.Name, builder.Definition.Namespace)

builder.Object = nil

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/pod/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func TestPodDelete(t *testing.T) {

func TestPodDeleteAndWait(t *testing.T) {
testPodDeleteHelper(t, func(builder *Builder) (*Builder, error) {
return builder.DeleteAndWait(time.Second)
return builder.DeleteAndWait(5 * time.Second)
})
}

Expand Down

0 comments on commit 56d7883

Please sign in to comment.