Skip to content

Commit 90028f8

Browse files
committed
HYPERFLEET-1017 - fix: use ConditionTypeLastKnownReconciled in sticky-break test
The test was using ConditionTypeAvailable in prevConds, but parsePrevConditions looks for ConditionTypeLastKnownReconciled. Without this fix the test passed incidentally but didn't exercise the sticky-break logic.
1 parent f08a379 commit 90028f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/services/aggregation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ func TestAggregateResourceStatus(t *testing.T) {
12091209
required := []string{"a", "b"}
12101210
prevConds := encodePrev(
12111211
api.ResourceCondition{
1212-
Type: api.ConditionTypeAvailable, Status: api.ConditionTrue, ObservedGeneration: 1,
1212+
Type: api.ConditionTypeLastKnownReconciled, Status: api.ConditionTrue, ObservedGeneration: 1,
12131213
CreatedTime: aggT0, LastUpdatedTime: aggT0, LastTransitionTime: aggT0,
12141214
},
12151215
)

0 commit comments

Comments
 (0)