diff --git a/executor/executor_test.go b/executor/executor_test.go index aafda158798c1..f8d694e1a215b 100644 --- a/executor/executor_test.go +++ b/executor/executor_test.go @@ -125,6 +125,7 @@ var _ = SerialSuites(&testFlushSuite{}) var _ = SerialSuites(&testAutoRandomSuite{&baseTestSuite{}}) var _ = SerialSuites(&testClusterTableSuite{}) var _ = SerialSuites(&testSuite10{&baseTestSuite{}}) +var _ = SerialSuites(&testPrepareSerialSuite{&baseTestSuite{}}) type testSuite struct{ *baseTestSuite } type testSuiteP1 struct{ *baseTestSuite } diff --git a/executor/explainfor_test.go b/executor/explainfor_test.go index 91f3f538c852a..853eff71d64ac 100644 --- a/executor/explainfor_test.go +++ b/executor/explainfor_test.go @@ -123,7 +123,11 @@ func (s *testSuite) TestExplainMetricTable(c *C) { `MemTableScan_5 10000.00 root table:CLUSTER_LOG start_time:2019-12-23 16:10:13, end_time:2019-12-23 16:30:13, node_types:["high_cpu_1","high_memory_1"]`)) } -func (s *testSuite) TestExplainForConnPlanCache(c *C) { +type testPrepareSerialSuite struct { + *baseTestSuite +} + +func (s *testPrepareSerialSuite) TestExplainForConnPlanCache(c *C) { tk := testkit.NewTestKit(c, s.store) orgEnable := core.PreparedPlanCacheEnabled() defer func() { diff --git a/expression/integration_test.go b/expression/integration_test.go index 281738ceaa65d..9def8b82150b2 100755 --- a/expression/integration_test.go +++ b/expression/integration_test.go @@ -5436,7 +5436,7 @@ func (s *testIntegrationSuite) TestCastStrToInt(c *C) { } } -func (s *testIntegrationSuite) TestIssue16205(c *C) { +func (s *testIntegrationSerialSuite) TestIssue16205(c *C) { tk := testkit.NewTestKit(c, s.store) orgEnable := plannercore.PreparedPlanCacheEnabled() defer func() { @@ -5490,7 +5490,7 @@ func (s *testIntegrationSuite) TestIssue14146(c *C) { tk.MustQuery("select * from tt").Check(testkit.Rows("")) } -func (s *testIntegrationSuite) TestCacheRegexpr(c *C) { +func (s *testIntegrationSerialSuite) TestCacheRegexpr(c *C) { tk := testkit.NewTestKit(c, s.store) orgEnable := plannercore.PreparedPlanCacheEnabled() defer func() { @@ -5514,7 +5514,7 @@ func (s *testIntegrationSuite) TestCacheRegexpr(c *C) { tk.MustQuery("execute stmt1 using @a").Check(testkit.Rows("R1")) } -func (s *testIntegrationSuite) TestCacheRefineArgs(c *C) { +func (s *testIntegrationSerialSuite) TestCacheRefineArgs(c *C) { tk := testkit.NewTestKit(c, s.store) orgEnable := plannercore.PreparedPlanCacheEnabled() defer func() { @@ -5637,7 +5637,7 @@ func (s *testIntegrationSuite) TestCoercibility(c *C) { }, "from t") } -func (s *testIntegrationSuite) TestCacheConstEval(c *C) { +func (s *testIntegrationSerialSuite) TestCacheConstEval(c *C) { tk := testkit.NewTestKit(c, s.store) orgEnable := plannercore.PreparedPlanCacheEnabled() defer func() { diff --git a/planner/core/prepare_test.go b/planner/core/prepare_test.go index 88eda813c5c23..1f88d14018391 100644 --- a/planner/core/prepare_test.go +++ b/planner/core/prepare_test.go @@ -392,7 +392,7 @@ func (s *testPrepareSuite) TestPrepareForGroupByItems(c *C) { tk.MustQuery("execute s1 using @a;").Check(testkit.Rows("3")) } -func (s *testPrepareSuite) TestPrepareCacheForPartition(c *C) { +func (s *testPrepareSerialSuite) TestPrepareCacheForPartition(c *C) { defer testleak.AfterTest(c)() store, dom, err := newStoreWithBootstrap() c.Assert(err, IsNil)