Skip to content

Commit

Permalink
chore: update the clena env
Browse files Browse the repository at this point in the history
  • Loading branch information
fengluodb committed Oct 24, 2023
1 parent b1c0e11 commit a94def1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/apps/backuppolicytemplate_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

"github.com/apecloud/kubeblocks/apis/apps/v1alpha1"
"github.com/apecloud/kubeblocks/pkg/constant"
intctrlutil "github.com/apecloud/kubeblocks/pkg/generics"
testapps "github.com/apecloud/kubeblocks/pkg/testutil/apps"
)

Expand All @@ -44,6 +45,9 @@ var _ = Describe("", func() {
// in race conditions, it will find the existence of old objects, resulting failure to
// create the new objects.
By("clean resources")

ml := client.HasLabels{testCtx.TestObjLabelKey}
testapps.ClearResourcesWithRemoveFinalizerOption(&testCtx, intctrlutil.BackupPolicyTemplateSignature, true, ml)
}

BeforeEach(func() {
Expand Down

0 comments on commit a94def1

Please sign in to comment.