Skip to content

Commit

Permalink
fix: update the test
Browse files Browse the repository at this point in the history
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
  • Loading branch information
Rustin170506 committed Nov 4, 2024
1 parent 84e5485 commit 25cdff4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ func TestAnalyzeHighestPriorityTablesWithFailedAnalysis(t *testing.T) {
r := refresher.NewRefresher(handle, sysProcTracker, dom.DDLNotifier())
defer r.Close()

r.AnalyzeHighestPriorityTables(tk.Session())
require.NoError(t, util.CallWithSCtx(handle.SPool(), func(sctx sessionctx.Context) error {
require.True(t, r.AnalyzeHighestPriorityTables(sctx))
return nil
}))
r.WaitAutoAnalyzeFinishedForTest()

is := dom.InfoSchema()
Expand Down

0 comments on commit 25cdff4

Please sign in to comment.