Skip to content

Commit 5b57931

Browse files
committed
fix aggregate util v1beta2 test case
1 parent 641f663 commit 5b57931

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

util/conditions/v1beta2/aggregate_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ func TestAggregate(t *testing.T) {
6969
wantErr: false,
7070
},
7171
{
72-
name: "Error if negative polarity conditions are misconfigured",
73-
conditions: [][]metav1.Condition{},
72+
name: "Error if negative polarity conditions are misconfigured",
73+
conditions: [][]metav1.Condition{
74+
{{Type: clusterv1.ScalingUpV1Beta2Condition, Status: metav1.ConditionTrue, Reason: "Reason-1", Message: "Message-1"}},
75+
},
7476
conditionType: clusterv1.ScalingUpV1Beta2Condition,
7577
options: []AggregateOption{NegativePolarityConditionTypes{"foo"}}, // NegativePolarityConditionTypes if set must equal source condition
7678
want: nil,

0 commit comments

Comments
 (0)