Skip to content

Commit ae9a648

Browse files
committed
Fix flaky test
1 parent 5da595c commit ae9a648

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/suite_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ var _ = Describe("NodeRemediation", func() {
811811

812812
Expect(k8sClient.Get(ctx, types.NamespacedName{Name: nodeName}, &node)).NotTo(HaveOccurred())
813813
node.Status.Conditions[len(node.Status.Conditions)-1].Status = corev1.ConditionFalse
814-
Expect(k8sClient.Status().Update(ctx, &node)).NotTo(HaveOccurred())
814+
Eventually(func() error {
815+
return k8sClient.Status().Update(ctx, &node)
816+
}, eventuallyTimeout).Should(Succeed())
815817

816818
Eventually(func() bool {
817819
err := k8sClient.Get(ctx, client.ObjectKey{

0 commit comments

Comments
 (0)