Skip to content

Commit

Permalink
Merge branch 'mackerelio:master' into docs/aws-ec2-ebs-iam-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
miztch authored Sep 2, 2024
2 parents 6a24e4e + 6066f72 commit 598e031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mackerel-plugin-elasticsearch/lib/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var testHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request)
panic(err)
}

fmt.Fprintf(w, string(json))
fmt.Fprint(w, string(json))
})

func TestGraphDefinition(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions mackerel-plugin-solr/lib/solr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ var (
var testHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path {
case "/solr/admin/info/system":
fmt.Fprintf(w, fetchJSON("system"))
fmt.Fprint(w, fetchJSON("system"))
case "/solr/admin/cores":
fmt.Fprintf(w, fetchJSON("cores"))
fmt.Fprint(w, fetchJSON("cores"))
case "/solr/testcore/admin/mbeans":
key := r.URL.Query()["cat"][0]
fmt.Fprintf(w, fetchJSONForMbeans(key))
fmt.Fprint(w, fetchJSONForMbeans(key))
default:
fmt.Fprintf(w, "")
fmt.Fprint(w, "")
}
})

Expand Down

0 comments on commit 598e031

Please sign in to comment.