Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed May 25, 2021
1 parent 05ec8d8 commit 8045298
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions goveralls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func fakeServer() *httptest.Server {
func fakeServerWithPayloadChannel(payload chan Job) *httptest.Server {
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
body, err := ioutil.ReadAll(r.Body)
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
return
}
// query params are used for the body payload
vals, err := url.ParseQuery(string(body))
if err != nil {
Expand Down

0 comments on commit 8045298

Please sign in to comment.