Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <[email protected]>
  • Loading branch information
Yisaer committed Nov 18, 2022
1 parent 32d8fc0 commit 1994757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statistics/handle/handle_hist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestConcurrentLoadHist(t *testing.T) {
timeout := time.Nanosecond * mathutil.MaxInt
h.SendLoadRequests(stmtCtx, neededColumns, timeout)
rs := h.SyncWaitStatsLoad(stmtCtx)
require.True(t, rs)
require.Nil(t, rs)
stat = h.GetTableStats(tableInfo)
hg = stat.Columns[tableInfo.Columns[2].ID].Histogram
topn = stat.Columns[tableInfo.Columns[2].ID].TopN
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestConcurrentLoadHistTimeout(t *testing.T) {
}
h.SendLoadRequests(stmtCtx, neededColumns, 0) // set timeout to 0 so task will go to timeout channel
rs := h.SyncWaitStatsLoad(stmtCtx)
require.False(t, rs)
require.Error(t, rs)
stat = h.GetTableStats(tableInfo)
hg = stat.Columns[tableInfo.Columns[2].ID].Histogram
topn = stat.Columns[tableInfo.Columns[2].ID].TopN
Expand Down

0 comments on commit 1994757

Please sign in to comment.