diff --git a/tests/realtikvtest/addindextest/main_test.go b/tests/realtikvtest/addindextest/main_test.go index 5171b56a48d1a..5b8cab5d2b134 100644 --- a/tests/realtikvtest/addindextest/main_test.go +++ b/tests/realtikvtest/addindextest/main_test.go @@ -18,6 +18,7 @@ import ( "flag" "testing" + "github.com/pingcap/tidb/config" "github.com/pingcap/tidb/tests/realtikvtest" ) @@ -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" + }) } diff --git a/tests/realtikvtest/testkit.go b/tests/realtikvtest/testkit.go index 8193ae53c19ec..b3ae5f3c6a2ac 100644 --- a/tests/realtikvtest/testkit.go +++ b/tests/realtikvtest/testkit.go @@ -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{