Skip to content

Commit

Permalink
refactor: better code
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Feb 8, 2024
1 parent d569d8f commit df91498
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/statistics/handle/autoanalyze/refresher/refresher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,11 @@ func insertFailedJobForPartitionWithStartTime(
}

func TestRebuildTableAnalysisJobQueue(t *testing.T) {
exec.AutoAnalyzeMinCnt = 0
old := exec.AutoAnalyzeMinCnt
defer func() {
exec.AutoAnalyzeMinCnt = 1000
exec.AutoAnalyzeMinCnt = old
}()
exec.AutoAnalyzeMinCnt = 0
store, dom := testkit.CreateMockStoreAndDomain(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
Expand Down

0 comments on commit df91498

Please sign in to comment.