Skip to content

Commit

Permalink
test: fix flaky test TestAlterAddConstraintStateChange3 (#53557)
Browse files Browse the repository at this point in the history
close #48123
  • Loading branch information
D3Hunter authored May 27, 2024
1 parent d24fdb7 commit c333f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ddl/constraint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func TestAlterAddConstraintStateChange3(t *testing.T) {
return
}
originalCallback.OnChanged(nil)
if job.SchemaState == model.StatePublic {
if job.SchemaState == model.StatePublic && job.IsDone() {
// set constraint state
constraintTable := external.GetTableByName(t, tk1, "test", "t")
tableCommon, ok := constraintTable.(*tables.TableCommon)
Expand Down

0 comments on commit c333f39

Please sign in to comment.