diff --git a/tests/server/region_syncer_test.go b/tests/server/region_syncer/region_syncer_test.go similarity index 95% rename from tests/server/region_syncer_test.go rename to tests/server/region_syncer/region_syncer_test.go index a5ff7727b90..d7b9a582625 100644 --- a/tests/server/region_syncer_test.go +++ b/tests/server/region_syncer/region_syncer_test.go @@ -15,6 +15,7 @@ package server_test import ( "context" + "testing" "time" . "github.com/pingcap/check" @@ -25,6 +26,18 @@ import ( "github.com/pingcap/pd/tests" ) +func Test(t *testing.T) { + TestingT(t) +} + +var _ = Suite(&serverTestSuite{}) + +type serverTestSuite struct{} + +func (s *serverTestSuite) SetUpSuite(c *C) { + server.EnableZap = true +} + type idAllocator struct { id uint64 }