Skip to content

Commit

Permalink
fixed flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwinhr716 committed Jan 4, 2025
1 parent c94cbf6 commit 9485e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/controllers/leaderworkerset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ var _ = ginkgo.Describe("LeaderWorkerSet controller", func() {
{
lwsUpdateFn: func(lws *leaderworkerset.LeaderWorkerSet) {
lws.Status.Conditions = []metav1.Condition{}
gomega.Expect(k8sClient.Status().Update(ctx, lws)).Should(gomega.Succeed())
gomega.Eventually(k8sClient.Status().Update(ctx, lws), testing.Timeout, testing.Interval).Should(gomega.Succeed())
},
checkLWSState: func(lws *leaderworkerset.LeaderWorkerSet) {
testing.ExpectLeaderWorkerSetProgressing(ctx, k8sClient, lws, "Replicas are progressing")
Expand Down

0 comments on commit 9485e89

Please sign in to comment.