From e3cea042d63a7f4eb8fb7151c8634b812eea917a Mon Sep 17 00:00:00 2001 From: karthic rao Date: Sun, 30 Aug 2015 19:00:35 +0530 Subject: [PATCH] Left over comments removed Redundant comments in the code removed --- middleware/browse/browse_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/middleware/browse/browse_test.go b/middleware/browse/browse_test.go index 13894a8dc..9f91f34ef 100644 --- a/middleware/browse/browse_test.go +++ b/middleware/browse/browse_test.go @@ -1,8 +1,7 @@ package browse import ( - //"bytes" - "encoding/json" + "encoding/json" "github.com/mholt/caddy/middleware" "net/http" "net/http/httptest" @@ -191,7 +190,7 @@ func TestBrowseJson(t *testing.T) { } actualJsonResponseString := rec.Body.String() - //t.Logf("json response body: %s\n", respBody) + //generating the listing to compare it with the response body file, err := os.Open(b.Root + req.URL.Path) if err != nil { @@ -233,12 +232,10 @@ func TestBrowseJson(t *testing.T) { listing.Order = "asc" listing.applySort() - //var buf bytes.Buffer marsh, err := json.Marshal(listing.Items) if err != nil { t.Fatalf("Unable to Marshal the listing ") } - //t.Logf("json value: %s\n", string(marsh)) expectedJsonString := string(marsh) if actualJsonResponseString != expectedJsonString { t.Errorf("Json response string doesnt match the expected Json response ")