Skip to content

Commit

Permalink
fix failed ut cases
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen authored and ti-chi-bot committed Nov 2, 2023
1 parent c712b4b commit e4c3bfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cdc/owner/ddl_sink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ func TestAddSpecialComment(t *testing.T) {
}

s := &ddlSinkImpl{}
s.info = &model.ChangeFeedInfo{
Config: config.GetDefaultReplicaConfig(),
}
for _, ca := range testCase {
re, err := s.addSpecialComment(ca.event)
require.Nil(t, err)
Expand Down
5 changes: 5 additions & 0 deletions pkg/orchestrator/reactor_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func TestChangefeedStateUpdate(t *testing.T) {
Integrity: config.GetDefaultReplicaConfig().Integrity,
ChangefeedErrorStuckDuration: config.
GetDefaultReplicaConfig().ChangefeedErrorStuckDuration,
SQLMode: config.GetDefaultReplicaConfig().SQLMode,
},
},
Status: &model.ChangeFeedStatus{CheckpointTs: 421980719742451713},
Expand Down Expand Up @@ -177,6 +178,7 @@ func TestChangefeedStateUpdate(t *testing.T) {
Integrity: config.GetDefaultReplicaConfig().Integrity,
ChangefeedErrorStuckDuration: config.
GetDefaultReplicaConfig().ChangefeedErrorStuckDuration,
SQLMode: config.GetDefaultReplicaConfig().SQLMode,
},
},
Status: &model.ChangeFeedStatus{CheckpointTs: 421980719742451713},
Expand Down Expand Up @@ -236,6 +238,7 @@ func TestChangefeedStateUpdate(t *testing.T) {
Integrity: config.GetDefaultReplicaConfig().Integrity,
ChangefeedErrorStuckDuration: config.
GetDefaultReplicaConfig().ChangefeedErrorStuckDuration,
SQLMode: config.GetDefaultReplicaConfig().SQLMode,
},
},
Status: &model.ChangeFeedStatus{CheckpointTs: 421980719742451713},
Expand Down Expand Up @@ -330,6 +333,7 @@ func TestPatchInfo(t *testing.T) {
Scheduler: defaultConfig.Scheduler,
Integrity: defaultConfig.Integrity,
ChangefeedErrorStuckDuration: defaultConfig.ChangefeedErrorStuckDuration,
SQLMode: defaultConfig.SQLMode,
},
}
cfInfo.RmUnusedFields()
Expand All @@ -352,6 +356,7 @@ func TestPatchInfo(t *testing.T) {
Scheduler: defaultConfig.Scheduler,
Integrity: defaultConfig.Integrity,
ChangefeedErrorStuckDuration: defaultConfig.ChangefeedErrorStuckDuration,
SQLMode: defaultConfig.SQLMode,
},
}
cfInfo.RmUnusedFields()
Expand Down

0 comments on commit e4c3bfa

Please sign in to comment.