Skip to content

Commit

Permalink
Wait full second before updating test object
Browse files Browse the repository at this point in the history
  • Loading branch information
waciumawanjohi committed Aug 26, 2023
1 parent 187bc79 commit bc2f73a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/delivery/deliverable_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,14 @@ var _ = Describe("DeliverableReconciler", func() {

healthyLastTransitionTime = deliverable.Status.Conditions[3].LastTransitionTime

time.Sleep(1)

// remove conditions from object
testToUpdate := getTestObjAtIndex(ctx, testNS, 0, 1)
testToUpdate.Status.Conditions = []metav1.Condition{}
Expect(c.Status().Update(ctx, testToUpdate)).To(Succeed())
})

It("the deliverable's health becomes unknown", func() {
Eventually(func() []metav1.Condition {
obj := &v1alpha1.Deliverable{}
Expand Down

0 comments on commit bc2f73a

Please sign in to comment.