Skip to content

Commit

Permalink
executor: stable test not to automatically gc (#32520)
Browse files Browse the repository at this point in the history
close #32519
  • Loading branch information
hawkingrei authored Feb 22, 2022
1 parent f60a589 commit de1bc57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"fmt"
"runtime"
"runtime/debug"
"testing"

"github.com/pingcap/tidb/executor"
Expand All @@ -26,6 +27,8 @@ import (
)

func TestPBMemoryLeak(t *testing.T) {
debug.SetGCPercent(1000)
defer debug.SetGCPercent(100)
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
Expand Down

0 comments on commit de1bc57

Please sign in to comment.