Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Mar 3, 2024
1 parent 7450b16 commit d9a60bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cdc/cdc/sink/producer/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (s *kafkaSuite) TestNewSaramaProducer(c *check.C) {
config.Version = "0.9.0.0"
config.PartitionNum = int32(2)
config.AutoCreate = false
config.Idempotent = false
config.BrokerEndpoints = strings.Split(leader.Addr(), ",")

newSaramaConfigImplBak := NewSaramaConfigImpl
Expand Down Expand Up @@ -339,6 +340,7 @@ func (s *kafkaSuite) TestProducerSendMessageFailed(c *check.C) {
config.Version = "0.9.0.0"
config.PartitionNum = int32(2)
config.AutoCreate = false
config.Idempotent = false
config.BrokerEndpoints = strings.Split(leader.Addr(), ",")

NewAdminClientImpl = kafka.NewMockAdminClient
Expand Down Expand Up @@ -421,6 +423,7 @@ func (s *kafkaSuite) TestProducerDoubleClose(c *check.C) {
config.Version = "0.9.0.0"
config.PartitionNum = int32(2)
config.AutoCreate = false
config.Idempotent = false
config.BrokerEndpoints = strings.Split(leader.Addr(), ",")

NewAdminClientImpl = kafka.NewMockAdminClient
Expand Down

0 comments on commit d9a60bb

Please sign in to comment.