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)