From babdb5ff4e8ea2516c1a0ab73838413d3c8f8cdc Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Fri, 6 Jul 2018 17:38:06 -0500 Subject: [PATCH] adjust test to account for new source of error downstream --- server/handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handler_test.go b/server/handler_test.go index 9670df2c2..bac09a1cc 100644 --- a/server/handler_test.go +++ b/server/handler_test.go @@ -336,7 +336,7 @@ func TestHandler_Endpoints(t *testing.T) { h.ServeHTTP(w, test.MustNewHTTPRequest("POST", "/index/i0/query", strings.NewReader(`Row(row=30)`))) if w.Code != gohttp.StatusBadRequest { t.Fatalf("unexpected status code: %d", w.Code) - } else if body := w.Body.String(); body != `{"error":"executing: field not found"}`+"\n" { + } else if body := w.Body.String(); body != `{"error":"executing: map reduce: field not found"}`+"\n" { t.Fatalf("unexpected body: %q", body) } }) @@ -353,7 +353,7 @@ func TestHandler_Endpoints(t *testing.T) { var resp pilosa.QueryResponse if err := cmd.API.Serializer.Unmarshal(w.Body.Bytes(), &resp); err != nil { t.Fatal(err) - } else if s := resp.Err.Error(); s != `executing: field not found` { + } else if s := resp.Err.Error(); s != `executing: map reduce: field not found` { t.Fatalf("unexpected error: %s", s) } })