Skip to content

Commit f7aaf1c

Browse files
executor: change ut parameters in parallel aggregate hash spill ut (pingcap#51012)
ref pingcap#47733
1 parent 5c95f3b commit f7aaf1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/executor/aggregate/agg_spill_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ func TestGetCorrectResult(t *testing.T) {
347347
ctx := mock.NewContext()
348348
initCtx(ctx, newRootExceedAction, hardLimitBytesNum, 256)
349349

350-
rowNum := 100000 + rand.Intn(100000)
351-
ndv := 50000 + rand.Intn(50000)
350+
rowNum := 100000
351+
ndv := 50000
352352
col1, col2 := generateData(rowNum, ndv)
353353
result := generateResult(col1, col2)
354354
opt := getMockDataSourceParameters(ctx)
@@ -378,9 +378,9 @@ func TestGetCorrectResult(t *testing.T) {
378378
executeCorrecResultTest(t, ctx, aggExec, dataSource, result)
379379
}
380380

381-
require.Equal(t, 0, newRootExceedAction.GetTriggeredNum())
382381
finished.Store(true)
383382
wg.Wait()
383+
require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/pkg/executor/aggregate/slowSomePartialWorkers"))
384384
}
385385

386386
func TestFallBackAction(t *testing.T) {

0 commit comments

Comments
 (0)