Skip to content

Commit

Permalink
fix: unit tests expect correct cg status
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 committed Feb 2, 2024
1 parent f14b958 commit 71de444
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions control-plane/pkg/reconciler/testing/objects_consumergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/utils/pointer"
"knative.dev/pkg/apis"
duckv1 "knative.dev/pkg/apis/duck/v1"
Expand Down Expand Up @@ -105,6 +106,9 @@ func NewConsumerGroup(opts ...ConsumerGroupOption) *kafkainternals.ConsumerGroup
},
},
},
Status: kafkainternals.ConsumerGroupStatus{
Selector: labels.SelectorFromSet(ConsumerLabels).String(),
},
}

for _, opt := range opts {
Expand Down

0 comments on commit 71de444

Please sign in to comment.