Skip to content

Commit

Permalink
chore: better test case
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Jun 18, 2024
1 parent 0c1c11a commit 648fc63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/realtikvtest/statisticstest/statistics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ func TestNoNeedIndexStatsLoading(t *testing.T) {
store, dom := realtikvtest.CreateMockStoreAndDomainAndSetup(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test;")
tk.MustExec("create table t(a int, b int, index ia(a));")
tk.MustExec("drop table if exists t;")
tk.MustExec("create table if not exists t(a int, b int, index ia(a));")
tk.MustExec("drop stats t;")
tk.MustExec("insert into t value(1,1), (2,2);")
require.Eventually(t, func() bool {
Expand Down

0 comments on commit 648fc63

Please sign in to comment.