server: improving test coverage for /debug/zip api (#11760)
This commit is contained in:
committed by
pingcap-github-bot
parent
69c0c3b1e8
commit
2813178979
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user