Skip to content

Commit

Permalink
add comments on exptected actions
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller committed Dec 7, 2023
1 parent 55b127c commit 6ebd29e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rollout/canary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ func TestRollBackToStable(t *testing.T) {
f.rolloutLister = append(f.rolloutLister, r2)
f.objects = append(f.objects, r2)

updatedRSIndex := f.expectUpdateReplicaSetAction(rs1)
f.expectUpdateRolloutAction(r2)
patchIndex := f.expectPatchRolloutAction(r2)
updatedRSIndex := f.expectUpdateReplicaSetAction(rs1) // Bump replicaset revision from 1 to 3
f.expectUpdateRolloutAction(r2) // Bump rollout revision from 1 to 3
patchIndex := f.expectPatchRolloutAction(r2) // Patch rollout status
f.run(getKey(r2, t))

expectedRS1 := rs1.DeepCopy()
Expand Down Expand Up @@ -883,9 +883,9 @@ func TestRollBackToActiveReplicaSetWithinWindow(t *testing.T) {
f.rolloutLister = append(f.rolloutLister, r2)
f.objects = append(f.objects, r2)

f.expectUpdateReplicaSetAction(rs1)
f.expectUpdateRolloutAction(r2)
rolloutPatchIndex := f.expectPatchRolloutAction(r2)
f.expectUpdateReplicaSetAction(rs1) // Update replicaset revision from 1 to 3
f.expectUpdateRolloutAction(r2) // Update rollout revision from 1 to 3
rolloutPatchIndex := f.expectPatchRolloutAction(r2) // Patch rollout status
f.run(getKey(r2, t))

expectedStepIndex := len(steps)
Expand Down

0 comments on commit 6ebd29e

Please sign in to comment.