Skip to content

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Sep 22, 2022
1 parent 88abae1 commit 208624c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/sink/mq/producer/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ func TestAdjustConfigMinInsyncReplicas(t *testing.T) {
topicName := "no-topic-no-min-insync-replicas"
err = AdjustConfig(adminClient, config, saramaConfig, "no-topic-no-min-insync-replicas")
require.Nil(t, err)

err = adminClient.CreateTopic(topicName, &sarama.TopicDetail{ReplicationFactor: 1}, false)
require.Regexp(t, ".*kafka server: Request parameters do not satisfy the configured policy.",
err.Error())
require.ErrorIs(t, err, sarama.ErrPolicyViolation)

// Report an error if the replication-factor is less than min.insync.replicas
// when the topic does exist.
Expand Down

0 comments on commit 208624c

Please sign in to comment.