Skip to content

Commit

Permalink
remove duplicated max allowed packet setter
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed Jul 16, 2019
1 parent 0dec016 commit 1d3ebe9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion expression/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ func (s *testIntegrationSuite) TestMathBuiltin(c *C) {
}

func (s *testIntegrationSuite) TestStringBuiltin(c *C) {
c.Assert(s.ctx.GetSessionVars().SetSystemVar(variable.MaxAllowedPacket, "67108864"), IsNil)
defer s.cleanEnv(c)
tk := testkit.NewTestKit(c, s.store)
tk.MustExec("use test")
Expand Down
2 changes: 0 additions & 2 deletions planner/core/logical_plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/pingcap/tidb/infoschema"
"github.com/pingcap/tidb/planner/property"
"github.com/pingcap/tidb/sessionctx"
"github.com/pingcap/tidb/sessionctx/variable"
"github.com/pingcap/tidb/util/testleak"
)

Expand Down Expand Up @@ -1361,7 +1360,6 @@ func (s *testPlanSuite) TestValidate(c *C) {
err: ErrUnknownColumn,
},
}
s.ctx.GetSessionVars().SetSystemVar(variable.MaxAllowedPacket, "67108864")
for _, tt := range tests {
sql := tt.sql
comment := Commentf("for %s", sql)
Expand Down

0 comments on commit 1d3ebe9

Please sign in to comment.