From 98fa937af2094444336b99d23e5b1358e9d2797b Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Mon, 26 Jun 2017 15:19:03 -0500 Subject: [PATCH] remove prints --- handler.go | 1 - handler_test.go | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/handler.go b/handler.go index 71d6c25ef..341c2d395 100644 --- a/handler.go +++ b/handler.go @@ -1511,7 +1511,6 @@ func (h *Handler) handlePostInputDefinition(w http.ResponseWriter, r *http.Reque http.Error(w, err.Error(), http.StatusBadRequest) return } - fmt.Println() // Find index. index := h.Holder.Index(indexName) diff --git a/handler_test.go b/handler_test.go index ec79f837a..0fe1f6c47 100644 --- a/handler_test.go +++ b/handler_test.go @@ -19,11 +19,6 @@ import ( "context" "encoding/json" "errors" - "fmt" - "github.com/gogo/protobuf/proto" - "github.com/pilosa/pilosa" - "github.com/pilosa/pilosa/internal" - "github.com/pilosa/pilosa/pql" "io" "io/ioutil" "net/http" @@ -32,6 +27,11 @@ import ( "reflect" "strings" "testing" + + "github.com/gogo/protobuf/proto" + "github.com/pilosa/pilosa" + "github.com/pilosa/pilosa/internal" + "github.com/pilosa/pilosa/pql" ) // Ensure the handler returns "not found" for invalid paths. @@ -1269,7 +1269,6 @@ func TestHandler_CreateInput(t *testing.T) { h.Cluster = NewCluster(1) w := httptest.NewRecorder() h.ServeHTTP(w, MustNewHTTPRequest("POST", "/index/i0/input/input1", bytes.NewBuffer(inputBody))) - fmt.Print(w.Body.String()) if w.Code != http.StatusOK { t.Fatalf("unexpected status code: %d", w.Code) } else if body := w.Body.String(); body != `{}`+"\n" {