server: improving test coverage for /debug/zip api (#11760)

This commit is contained in:
Maxwell
2019-08-19 11:21:46 +08:00
committed by pingcap-github-bot
parent 69c0c3b1e8
commit 2813178979

View File

@ -820,3 +820,12 @@ func (ts *HTTPHandlerTestSuite) TestHotRegionInfo(c *C) {
defer resp.Body.Close()
c.Assert(resp.StatusCode, Equals, http.StatusBadRequest)
}
func (ts *HTTPHandlerTestSuite) TestDebugZip(c *C) {
ts.startServer(c)
defer ts.stopServer(c)
resp, err := http.Get("http://127.0.0.1:10090/debug/zip")
c.Assert(err, IsNil)
defer resp.Body.Close()
c.Assert(resp.StatusCode, Equals, http.StatusOK)
}