From 64e1b95910eeb822355368236db742bde54b4242 Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Tue, 16 Jan 2018 10:30:59 -0600 Subject: [PATCH] fix test TestHandler_Query_Pairs_JSON --- handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler_test.go b/handler_test.go index f865d1510..468d73a0e 100644 --- a/handler_test.go +++ b/handler_test.go @@ -541,7 +541,7 @@ func TestHandler_Query_Pairs_JSON(t *testing.T) { h.ServeHTTP(w, test.MustNewHTTPRequest("POST", "/index/i/query", strings.NewReader(`TopN(frame=x, n=2)`))) if w.Code != http.StatusOK { t.Fatalf("unexpected status code: %d", w.Code) - } else if body := w.Body.String(); body != `{"results":[[{"id":1,"count":2},{"id":3,"count":4}]]}`+"\n" { + } else if body := w.Body.String(); body != `{"results":[[{"id":1,"key":"","count":2},{"id":3,"key":"","count":4}]]}`+"\n" { t.Fatalf("unexpected body: %q", body) } }