Skip to content

Commit

Permalink
fix make test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Oct 11, 2023
1 parent e02d2d4 commit bc005d5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/controllerutil/volumesnapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
rtclient "sigs.k8s.io/controller-runtime/pkg/client"

testapps "github.com/apecloud/kubeblocks/internal/testutil/apps"
viper "github.com/apecloud/kubeblocks/internal/viperx"
)

Expand Down Expand Up @@ -91,15 +90,5 @@ var _ = Describe("VolumeSnapshot compat client", func() {
Eventually(func() error {
return compatClient.Get(snapKey, snapGet)
}).Should(Satisfy(apierrors.IsNotFound))

By("expect for volume snapshot disabled")
sc := testapps.CreateStorageClass(&testCtx, testapps.StogrageClassName, true)
enabled, _ := IsVolumeSnapshotEnabled(ctx, k8sClient, sc.Name)
Expect(enabled).Should(BeFalse())

By("expect for volume snapshot enabled")
testapps.CreateVolumeSnapshotClass(&testCtx)
enabled, _ = IsVolumeSnapshotEnabled(ctx, k8sClient, sc.Name)
Expect(enabled).Should(BeTrue())
})
})

0 comments on commit bc005d5

Please sign in to comment.