Skip to content

Commit

Permalink
ddl: fix unstable test (#49891)
Browse files Browse the repository at this point in the history
close #49827
  • Loading branch information
wjhuang2016 authored Dec 28, 2023
1 parent 933e713 commit ab1f518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ddl/util/callback/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func (tc *TestDDLCallback) OnJobUpdated(job *model.Job) {
(*onJobUpdatedExportedFunc)(job)
return
}
if job.State == model.JobStateSynced {
return
}
if tc.onJobUpdated != nil {
tc.onJobUpdated(job)
return
Expand Down

0 comments on commit ab1f518

Please sign in to comment.