From 7a4685b181d708f55a442969a495cd2c180fbc3f Mon Sep 17 00:00:00 2001 From: ShuNing Date: Wed, 22 May 2019 14:14:03 +0800 Subject: [PATCH] tests: independent region sync test (#1545) * tests: independent syncer region test Signed-off-by: nolouch --- .../{ => region_syncer}/region_syncer_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) rename tests/server/{ => region_syncer}/region_syncer_test.go (94%) diff --git a/tests/server/region_syncer_test.go b/tests/server/region_syncer/region_syncer_test.go similarity index 94% rename from tests/server/region_syncer_test.go rename to tests/server/region_syncer/region_syncer_test.go index a5ff7727b90..b72c147e6ff 100644 --- a/tests/server/region_syncer_test.go +++ b/tests/server/region_syncer/region_syncer_test.go @@ -11,10 +11,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -package server_test +package syncer_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 }