comment out debug statements

This commit is contained in:
Samir Patel 2021-05-27 13:35:53 -05:00 committed by Samir Patel
parent 7799d7c680
commit f946528053

View file

@ -515,16 +515,16 @@ func TestHandler_Endpoints(t *testing.T) {
t.Fatalf("unmarshal")
}
w2 := httptest.NewRecorder()
h.ServeHTTP(w2, test.MustNewHTTPRequest("GET", "/schema", nil))
if w2.Code != gohttp.StatusOK {
t.Fatalf("unexpected status code: %d", w2.Code)
}
schemaBody := w2.Body.String()
t.Fatalf("Schema: %+v\n", schemaBody)
if schemaBody != "{\"indexes\":[]}\n" {
t.Fatalf("unexpected empty schema: '%v'", schemaBody)
}
// w2 := httptest.NewRecorder()
// h.ServeHTTP(w2, test.MustNewHTTPRequest("GET", "/schema", nil))
// if w2.Code != gohttp.StatusOK {
// t.Fatalf("unexpected status code: %d", w2.Code)
// }
// schemaBody := w2.Body.String()
// t.Fatalf("Schema: %+v\n", schemaBody)
// if schemaBody != "{\"indexes\":[]}\n" {
// t.Fatalf("unexpected empty schema: '%v'", schemaBody)
// }
for _, nodeUsage := range nodeUsages {
numIndexes := len(nodeUsage.Disk.IndexUsage)