Skip to content

Commit 4bee175

Browse files
committed
fix integration test
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
1 parent 220e29f commit 4bee175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/controllers/updaterun/execution_integration_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,7 @@ var _ = Describe("UpdateRun execution tests - double stages", func() {
13081308

13091309
It("Should complete the 2nd stage when update run is in Run state and move on to the delete stage", func() {
13101310
By("Updating updateRun state to Run")
1311-
updateRun.Spec.State = placementv1beta1.StateRun
1312-
Expect(k8sClient.Update(ctx, updateRun)).Should(Succeed(), "failed to update the updateRun state")
1311+
updateRun = updateClusterStagedUpdateRunState(updateRun.Name, placementv1beta1.StateRun)
13131312
// Update the test's want status to match the new generation.
13141313
updateAllStatusConditionsGeneration(wantStatus, updateRun.Generation)
13151314

0 commit comments

Comments
 (0)