Skip to content

Commit

Permalink
fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Sep 12, 2023
1 parent 9f37626 commit 956ada2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/util/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestAndWriteExampleReplicaTOML(t *testing.T) {
err = cfg.ValidateAndAdjust(sinkURL)
require.NoError(t, err)
require.Equal(t, &config.SinkConfig{
EncoderConcurrency: util.AddressOf(16),
EncoderConcurrency: util.AddressOf(config.DefaultEncoderGroupConcurrency),
DispatchRules: []*config.DispatchRule{
{PartitionRule: "ts", TopicRule: "hello_{schema}", Matcher: []string{"test1.*", "test2.*"}},
{PartitionRule: "rowid", TopicRule: "{schema}_world", Matcher: []string{"test3.*", "test4.*"}},
Expand Down Expand Up @@ -230,7 +230,7 @@ func TestAndWriteStorageSinkTOML(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &config.SinkConfig{
Protocol: util.AddressOf(config.ProtocolCanalJSON.String()),
EncoderConcurrency: util.AddressOf(16),
EncoderConcurrency: util.AddressOf(config.DefaultEncoderGroupConcurrency),
Terminator: util.AddressOf(config.CRLF),
TxnAtomicity: util.AddressOf(config.AtomicityLevel("")),
DateSeparator: util.AddressOf("day"),
Expand Down

0 comments on commit 956ada2

Please sign in to comment.