Skip to content

Commit

Permalink
fix: solve linter
Browse files Browse the repository at this point in the history
  • Loading branch information
javip97 committed Aug 1, 2024
1 parent df5cf31 commit f514850
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestSubmitSignedVoluntaryExit(t *testing.T) {
var (
errMsg = "Invalid voluntary exit, it will never pass validation so it's rejected"
errStatusCode = http.StatusBadRequest
errBodyMsg = fmt.Sprintf(`{"code": %d,"message": "%s"}`, errStatusCode, errMsg)
errBodyMsg = fmt.Sprintf(`{"code": %d,"message": %q}`, errStatusCode, errMsg)
respError = &http.Response{StatusCode: errStatusCode, Body: io.NopCloser(bytes.NewReader([]byte(errBodyMsg))), Request: &http.Request{Method: http.MethodPost, URL: u}}
)

Expand All @@ -30,7 +30,7 @@ func TestSubmitSignedVoluntaryExit(t *testing.T) {
var (
okMsg = "all right"
okStatusCode = http.StatusOK
okBodyMsg = fmt.Sprintf(`{"code": %d,"message": "%s"}`, okStatusCode, okMsg)
okBodyMsg = fmt.Sprintf(`{"code": %d,"message": %q}`, okStatusCode, okMsg)
)

respOK := &http.Response{StatusCode: okStatusCode, Body: io.NopCloser(bytes.NewReader([]byte(okBodyMsg))), Request: &http.Request{Method: http.MethodPost, URL: u}}
Expand Down

0 comments on commit f514850

Please sign in to comment.