diff --git a/cdc/cdc/sink/producer/kafka/kafka_test.go b/cdc/cdc/sink/producer/kafka/kafka_test.go index ec5c7d69..3b934731 100644 --- a/cdc/cdc/sink/producer/kafka/kafka_test.go +++ b/cdc/cdc/sink/producer/kafka/kafka_test.go @@ -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 @@ -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 @@ -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