From 6ebd29eb6a54f975e152d259b411b1567f4b37d8 Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Thu, 7 Dec 2023 08:59:08 -0600 Subject: [PATCH] add comments on exptected actions Signed-off-by: Zach Aller --- rollout/canary_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rollout/canary_test.go b/rollout/canary_test.go index b39e8ff515..6fc3dda93c 100644 --- a/rollout/canary_test.go +++ b/rollout/canary_test.go @@ -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() @@ -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)