From 44eccc3c8730dc290ebf4687e7d0582c92047dac Mon Sep 17 00:00:00 2001 From: xzhangxian1008 Date: Tue, 13 Aug 2024 15:39:55 +0800 Subject: [PATCH] fix --- pkg/executor/aggregate/agg_spill_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/executor/aggregate/agg_spill_test.go b/pkg/executor/aggregate/agg_spill_test.go index 253856249cc6d..9504a7fa89304 100644 --- a/pkg/executor/aggregate/agg_spill_test.go +++ b/pkg/executor/aggregate/agg_spill_test.go @@ -415,6 +415,9 @@ func TestGetCorrectResult(t *testing.T) { require.NoError(t, err) defer require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/pkg/executor/aggregate/slowSomePartialWorkers")) + hardLimitBytesNum := int64(6000000) + initCtx(ctx, newRootExceedAction, hardLimitBytesNum, 256) + finished := atomic.Bool{} wg := sync.WaitGroup{} wg.Add(1) @@ -431,9 +434,6 @@ func TestGetCorrectResult(t *testing.T) { wg.Done() }() - hardLimitBytesNum := int64(6000000) - initCtx(ctx, newRootExceedAction, hardLimitBytesNum, 256) - aggExec := buildHashAggExecutor(t, ctx, dataSource) for i := 0; i < 5; i++ { executeCorrecResultTest(t, ctx, nil, dataSource, result)