Skip to content

Commit

Permalink
set store to tikv for realtikv test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Dec 2, 2022
1 parent 24888c6 commit 66ba28d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/realtikvtest/addindextest/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"flag"
"testing"

"github.com/pingcap/tidb/config"
"github.com/pingcap/tidb/tests/realtikvtest"
)

Expand All @@ -27,4 +28,7 @@ var FullMode = flag.Bool("full-mode", false, "whether tests run in full mode")

func TestMain(m *testing.M) {
realtikvtest.RunTestMain(m)
config.UpdateGlobal(func(conf *config.Config) {
conf.Store = "tikv"
})
}
1 change: 0 additions & 1 deletion tests/realtikvtest/testkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func RunTestMain(m *testing.M) {
config.UpdateGlobal(func(conf *config.Config) {
conf.TiKVClient.AsyncCommit.SafeWindow = 0
conf.TiKVClient.AsyncCommit.AllowedClockDrift = 0
conf.Store = "tikv"
})
tikv.EnableFailpoints()
opts := []goleak.Option{
Expand Down

0 comments on commit 66ba28d

Please sign in to comment.