Skip to content

Commit 8cf50b7

Browse files
chmouelCopilot
andauthored
Update test/pkg/repository/teardown.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fbacd0e commit 8cf50b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/pkg/repository/teardown.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1010
)
1111

12-
// NSTearDown deletes the namespace and all resources in it.
12+
// NSTearDown deletes the repositories in the specified namespace and then deletes the namespace itself.
13+
// Deleting the namespace triggers the deletion of all resources within it.
1314
func NSTearDown(ctx context.Context, t *testing.T, runcnx *params.Run, targetNS string) {
1415
runcnx.Clients.Log.Infof("Deleting Repository in %s", targetNS)
1516
err := runcnx.Clients.PipelineAsCode.PipelinesascodeV1alpha1().Repositories(targetNS).DeleteCollection(ctx, metav1.DeleteOptions{}, metav1.ListOptions{})

0 commit comments

Comments
 (0)