Skip to content

Commit

Permalink
fix: update broken tests
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 25cdff4 commit 100d379
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/statistics/handle/updatetest/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ func TestAutoAnalyzePartitionTableAfterAddingIndex(t *testing.T) {
tblInfo := tbl.Meta()
idxInfo := tblInfo.Indices[0]
require.Nil(t, h.GetTableStats(tblInfo).GetIdx(idxInfo.ID))
require.True(t, h.HandleAutoAnalyze())
require.Eventually(t, func() bool {
return h.HandleAutoAnalyze()
}, 3*time.Second, time.Millisecond*100)
require.NotNil(t, h.GetTableStats(tblInfo).GetIdx(idxInfo.ID))
}

0 comments on commit 100d379

Please sign in to comment.