Skip to content

Commit

Permalink
fix unstable test
Browse files Browse the repository at this point in the history
Signed-off-by: xiongjiwei <[email protected]>
  • Loading branch information
xiongjiwei committed Nov 4, 2022
1 parent 2f03a8d commit 5ad2f77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ddl/concurrentddltest/switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func TestConcurrentDDLSwitch(t *testing.T) {
ch <- struct{}{}
}()

// sleep 2s to make sure the ddl jobs is into table.
time.Sleep(2 * time.Second)
ticker := time.NewTicker(time.Second)
count := 0
done := false
Expand Down

0 comments on commit 5ad2f77

Please sign in to comment.