From f5148506c4e7ab55e0a450d2c08cfa30578bcae8 Mon Sep 17 00:00:00 2001 From: javip97 Date: Thu, 1 Aug 2024 10:01:58 +0200 Subject: [PATCH] fix: solve linter --- .../client/http/submit_signed_voluntary_exit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/consensus/client/http/submit_signed_voluntary_exit_test.go b/ethereum/consensus/client/http/submit_signed_voluntary_exit_test.go index 0585b81..9d2a98b 100644 --- a/ethereum/consensus/client/http/submit_signed_voluntary_exit_test.go +++ b/ethereum/consensus/client/http/submit_signed_voluntary_exit_test.go @@ -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}} ) @@ -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}}