Skip to content

Commit

Permalink
Whiny ass go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Sep 24, 2024
1 parent 4da6f4c commit 63d4756
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clients/stellarcore/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ func TestGetLedgerEntries(t *testing.T) {
"http://localhost:11626/getledgerentryraw",
func(r *http.Request) (*http.Response, error) {
// Ensure the request has the correct POST body
requestData, err := io.ReadAll(r.Body)
require.NoError(t, err)
requestData, ierr := io.ReadAll(r.Body)
require.NoError(t, ierr)

keyB64, err := key.MarshalBinaryBase64()
require.NoError(t, err)
keyB64, ierr := key.MarshalBinaryBase64()
require.NoError(t, ierr)
expected := fmt.Sprintf("key=%s&ledgerSeq=1234", url.QueryEscape(keyB64))
require.Equal(t, expected, string(requestData))

resp, err := httpmock.NewJsonResponse(http.StatusOK, &mockResp)
require.NoError(t, err)
resp, ierr := httpmock.NewJsonResponse(http.StatusOK, &mockResp)
require.NoError(t, ierr)
ce.Return(httpmock.ResponderFromResponse(resp))
return resp, nil
})
Expand Down

0 comments on commit 63d4756

Please sign in to comment.