From 753a225f535e7f06436e05aa59b6c2ba8ba8901a Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Wed, 2 Mar 2016 22:07:06 -0800 Subject: [PATCH] add some verbiage to body. Change-Id: I1c6e6f61bcc23b9777e8bef140c5488bafe248f9 --- api_test.go | 2 +- server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api_test.go b/api_test.go index e440f30..0903d1f 100644 --- a/api_test.go +++ b/api_test.go @@ -94,7 +94,7 @@ func TestAdd(t *testing.T) { if _, err := io.Copy(buf, resp.Body); err != nil { t.Errorf("couldn't read content from server: %v", err) } - if got, want := strings.Count(buf.String(), "meta"), 1; got != want { + if got, want := strings.Count(buf.String(), "\n\n") + fmt.Fprintf(w, "\n

go tool metadata in head

\n\n") case "POST": if req.URL.Path == "/" { http.Error(w, fmt.Sprintf("invalid path %q", req.URL.Path), http.StatusBadRequest)