Skip to content

Commit

Permalink
Try to fix the flaky envtest
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Sep 4, 2024
1 parent 0573b8b commit c16cf23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ var _ = Describe("CassandraDatacenter tests", func() {
refreshDatacenter(ctx, &dc)

By("Updating the size to 3")
patch := client.MergeFrom(dc.DeepCopy())
dc.Spec.Size = 3
Expect(k8sClient.Update(ctx, &dc)).To(Succeed())
Expect(k8sClient.Patch(ctx, &dc, patch)).To(Succeed())

waitForDatacenterCondition(ctx, dcName, cassdcapi.DatacenterScalingUp, corev1.ConditionTrue).Should(Succeed())
waitForDatacenterProgress(ctx, dcName, cassdcapi.ProgressUpdating).Should(Succeed())
Expand Down

0 comments on commit c16cf23

Please sign in to comment.