diff --git a/executor/explain_test.go b/executor/explain_test.go index 86db5d6ea4e03..8a274ecd7604a 100644 --- a/executor/explain_test.go +++ b/executor/explain_test.go @@ -160,7 +160,9 @@ func (s *testSuite1) TestMemoryUsageAfterClose(c *C) { tk := testkit.NewTestKitWithInit(c, s.store) tk.MustExec("drop table if exists t") tk.MustExec("create table t (v int, k int, key(k))") - tk.MustExec("insert into t values (1, 1), (1, 1), (1, 1), (1, 1), (1, 1)") + for i := 0; i < tk.Se.GetSessionVars().MaxChunkSize*5; i++ { + tk.MustExec(fmt.Sprintf("insert into t values (%v, %v)", i, i)) + } SQLs := []string{"select v+abs(k) from t"} for _, sql := range SQLs { tk.MustQuery(sql)