Skip to content

Commit

Permalink
refine test
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Jan 11, 2023
1 parent 861cf13 commit 19601d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddl/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1611,15 +1611,14 @@ func TestMDLTruncateTable(t *testing.T) {
}

hook.OnJobUpdatedExported.Store(&f)
dom.DDL().SetHook(hook)

go func() {
tk2.MustExec("truncate table test.t")
timetk2 = time.Now()
wg.Done()
}()

dom.DDL().SetHook(hook)

time.Sleep(2 * time.Second)
timeMain := time.Now()
tk.MustExec("commit")
Expand Down

0 comments on commit 19601d5

Please sign in to comment.