Skip to content

Commit 4e5f972

Browse files
author
Daniel Vaseekaran
committed
Fix TestGenerateBrokerConfig
1 parent c1c0f02 commit 4e5f972

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/resources/kafka/configmap_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ cruise.control.metrics.reporter.bootstrap.servers=kafka-all-broker.kafka.svc.clu
621621
cruise.control.metrics.reporter.kubernetes.mode=true
622622
listener.security.protocol.map=INTERNAL:PLAINTEXT
623623
listeners=INTERNAL://:9092
624-
zookeeper.connect=example.zk:2181/
625-
security.inter.broker.protocol=SASL_SSL`,
624+
security.inter.broker.protocol=SASL_SSL
625+
zookeeper.connect=example.zk:2181/`,
626626
},
627627
}
628628

@@ -634,6 +634,7 @@ security.inter.broker.protocol=SASL_SSL`,
634634

635635
t.Run(test.testName, func(t *testing.T) {
636636
mockClient := mocks.NewMockClient(mockCtrl)
637+
mockClient.EXPECT().Get(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).AnyTimes()
637638
r := Reconciler{
638639
Reconciler: resources.Reconciler{
639640
Client: mockClient,

0 commit comments

Comments
 (0)