Skip to content

Commit

Permalink
test: stabilize TestMultiSchemaChangeAlterIndex (#46899)
Browse files Browse the repository at this point in the history
close #43231
  • Loading branch information
tangenta authored Sep 12, 2023
1 parent 8af15b1 commit 25fd1b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ddl/multi_schema_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,9 @@ func TestMultiSchemaChangeAlterIndex(t *testing.T) {
var checked bool
callback := &callback.TestDDLCallback{Do: dom}
onJobUpdatedExportedFunc := func(job *model.Job) {
assert.NotNil(t, job.MultiSchemaInfo)
if job.MultiSchemaInfo == nil {
return
}
// "modify column a tinyint" in write-reorg.
if job.MultiSchemaInfo.SubJobs[1].SchemaState == model.StateWriteReorganization {
checked = true
Expand Down

0 comments on commit 25fd1b7

Please sign in to comment.