Skip to content

Commit

Permalink
chore: refine the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fengluodb committed Oct 24, 2023
1 parent fd4d974 commit a7d0ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/dataprotection/backup_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ var _ = Describe("Backup Controller test", func() {
})
backupKey := client.ObjectKeyFromObject(backup)

By("check backup failed and its expiration is set")
By("check backup failed and its expiration when retentionPeriod is not set")
Eventually(testapps.CheckObj(&testCtx, backupKey, func(g Gomega, fetched *dpv1alpha1.Backup) {
g.Expect(fetched.Status.Phase).To(Equal(dpv1alpha1.BackupPhaseFailed))
g.Expect(fetched.Status.Expiration).Should(BeNil())
Expand Down Expand Up @@ -459,7 +459,7 @@ var _ = Describe("Backup Controller test", func() {
})
})

It("should fail because of invalid backup method", func() {
It("should fail because backup method doesn't specify snapshotVolumes with empty actionSet", func() {
backup := testdp.NewFakeBackup(&testCtx, func(backup *dpv1alpha1.Backup) {
backup.Spec.BackupPolicyName = backupPolicy.Name
backup.Spec.BackupMethod = "invalid"
Expand Down

0 comments on commit a7d0ac1

Please sign in to comment.