Skip to content

Commit

Permalink
executor: fix redundant setup
Browse files Browse the repository at this point in the history
  • Loading branch information
unconsolable committed Sep 26, 2021
1 parent 12f9e9e commit 8bd3e65
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions executor/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

"github.com/pingcap/tidb/config"
"github.com/pingcap/tidb/meta/autoid"
"github.com/pingcap/tidb/util/logutil"
"github.com/pingcap/tidb/util/testbridge"
"github.com/tikv/client-go/v2/tikv"
"go.uber.org/goleak"
Expand All @@ -29,13 +28,7 @@ import (
func TestMain(m *testing.M) {
testbridge.WorkaroundGoCheckFlags()

logLevel := os.Getenv("log_level")
err := logutil.InitLogger(logutil.NewLogConfig(logLevel, logutil.DefaultLogFormat, "", logutil.EmptyFileLogConfig, false))
if err != nil {
panic(err.Error())
}
autoid.SetStep(5000)

config.UpdateGlobal(func(conf *config.Config) {
conf.Log.SlowThreshold = 30000 // 30s
conf.TiKVClient.AsyncCommit.SafeWindow = 0
Expand Down

0 comments on commit 8bd3e65

Please sign in to comment.