diff --git a/server/http_handler_test.go b/server/http_handler_test.go index ac6953cf6ec7d..053dc588a3200 100644 --- a/server/http_handler_test.go +++ b/server/http_handler_test.go @@ -77,13 +77,13 @@ type HTTPHandlerTestSerialSuite struct { *basicHTTPHandlerTestSuite } -var _ = Suite(&HTTPHandlerTestSuite{ - &basicHTTPHandlerTestSuite{testServerClient: newTestServerClient()}, -}) +var _ = Suite(&HTTPHandlerTestSuite{&basicHTTPHandlerTestSuite{}}) -var _ = SerialSuites(&HTTPHandlerTestSerialSuite{ - &basicHTTPHandlerTestSuite{testServerClient: newTestServerClient()}, -}) +var _ = SerialSuites(&HTTPHandlerTestSerialSuite{&basicHTTPHandlerTestSuite{}}) + +func (ts *basicHTTPHandlerTestSuite) SetUpSuite(c *C) { + ts.testServerClient = newTestServerClient() +} func (ts *HTTPHandlerTestSuite) TestRegionIndexRange(c *C) { sTableID := int64(3)