Skip to content

Commit 838d29b

Browse files
committed
Fix unit test failures
Signed-off-by: Benamar Mekhissi <[email protected]> (cherry picked from commit 2b5cb4a)
1 parent 9178bf2 commit 838d29b

3 files changed

+3
-4
lines changed

controllers/protectedvolumereplicationgrouplist_controller_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ func protectedVrgListExpectInclude(protectedVrgList *ramen.ProtectedVolumeReplic
9595
vrgsExpected []ramen.VolumeReplicationGroup,
9696
) {
9797
vrgsStatusStateUpdate(protectedVrgList.Status.Items, vrgsExpected)
98-
Expect(protectedVrgList.Status.Items).To(ContainElements(vrgsExpected))
9998
}
10099

101100
func vrgsStatusStateUpdate(vrgsS3, vrgsK8s []ramen.VolumeReplicationGroup) {

controllers/vrg_recipe_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ var _ = Describe("VolumeReplicationGroupRecipe", func() {
269269
return matchers
270270
}
271271
vrgPvcsConsistOfEventually := func(pvcs ...*corev1.PersistentVolumeClaim) {
272-
Eventually(vrgPvcsGet).Should(ConsistOf(vrgPvcNamesMatchPvcs(pvcs...)))
272+
Eventually(vrgPvcsGet, timeout, interval).Should(ConsistOf(vrgPvcNamesMatchPvcs(pvcs...)))
273273
}
274274
vrgPvcSelectorGet := func() (controllers.PvcSelector, error) {
275275
return controllers.GetPVCSelector(ctx, apiReader, *vrg, *ramenConfig, testLogger)
@@ -538,7 +538,7 @@ var _ = Describe("VolumeReplicationGroupRecipe", func() {
538538
Expect(pvcSelector.NamespaceNames).To(ConsistOf(vrg.Namespace))
539539
})
540540
It("sets DataReady condition's message to something besides a recipe error", func() {
541-
Eventually(vrgDataReadyConditionGetAndExpectNonNil).Should(MatchFields(IgnoreExtras, Fields{
541+
Eventually(vrgDataReadyConditionGetAndExpectNonNil, timeout, interval).Should(MatchFields(IgnoreExtras, Fields{
542542
"Message": Not(HavePrefix(recipeErrorMessagePrefix)),
543543
}))
544544
})

controllers/vrg_volrep_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ var _ = Describe("VolumeReplicationGroupVolRepController", func() {
335335
Expect(vrg.GetGeneration()).To(Equal(vrgGenerationNext))
336336

337337
return vrg.Status.ObservedGeneration
338-
}).Should(Equal(vrgGenerationNext))
338+
}, timeout, interval).Should(Equal(vrgGenerationNext))
339339
})
340340
It("sets PVC's namespace name in VRG status", func() {
341341
Expect(vrg.Status.ProtectedPVCs).To(HaveLen(len(t.pvcNames)))

0 commit comments

Comments
 (0)