Skip to content

Commit

Permalink
fix compute status test
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Dec 10, 2024
1 parent 35793e0 commit 1555969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/autoupdate/rollout/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,11 @@ func Test_reconciler_computeStatus(t *testing.T) {
oldStatus := &autoupdate.AutoUpdateAgentRolloutStatus{
Groups: []*autoupdate.AutoUpdateAgentRolloutStatusGroup{
{
Name: "old group",
Name: "old group",
State: autoupdate.AutoUpdateAgentGroupState_AUTO_UPDATE_AGENT_GROUP_STATE_UNSTARTED,
},
},
State: autoupdate.AutoUpdateAgentRolloutState_AUTO_UPDATE_AGENT_ROLLOUT_STATE_UNSTARTED,
}
oldSpec := &autoupdate.AutoUpdateAgentRolloutSpec{
StartVersion: "1.2.3",
Expand All @@ -736,6 +738,7 @@ func Test_reconciler_computeStatus(t *testing.T) {
require.NoError(t, err)
newStatus := &autoupdate.AutoUpdateAgentRolloutStatus{
Groups: newGroups,
State: autoupdate.AutoUpdateAgentRolloutState_AUTO_UPDATE_AGENT_ROLLOUT_STATE_UNSTARTED,
}

tests := []struct {
Expand Down

0 comments on commit 1555969

Please sign in to comment.