From 2813178979181331a511a87f34fdbddc2bd50ad3 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Mon, 19 Aug 2019 11:21:46 +0800 Subject: [PATCH] server: improving test coverage for `/debug/zip` api (#11760) --- server/http_handler_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/http_handler_test.go b/server/http_handler_test.go index d10e60903c..4f43205cee 100644 --- a/server/http_handler_test.go +++ b/server/http_handler_test.go @@ -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) +}