Skip to content

Commit

Permalink
fixup! add tests for export to make sure throttling works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Nov 7, 2024
1 parent 513d5a8 commit c361530
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/controller/mantlebackup_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1330,16 +1330,6 @@ var _ = Describe("export", func() {
// create 5 different MantleBackup resources and call export() for each of them
for i := 0; i < 5; i++ {
createAndExportMantleBackup(mbr, fmt.Sprintf("target1-%d", i), ns)
if i == 0 {
// wait for at least one Job is created so that k8sClient's cache
// will be up-to-date and export() can correctly make a decision.
Eventually(ctx, func(g Gomega) error {
numJobs, err := getNumOfExportJobs(nsController)
g.Expect(err).NotTo(HaveOccurred())
g.Expect(numJobs).To(Equal(1))
return nil
}).Should(Succeed())
}
}

// make sure that only 1 Job is created
Expand Down

0 comments on commit c361530

Please sign in to comment.