diff --git a/README.md b/README.md index ba7e0d6..ebb55c8 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ func main() { - Maybe the context usage throughout the project could be improved - Maybe add and move logging to the Cache and RateLimit interfaces, instead of passing them around - Maybe endpoint methods int32/int64 should be changed to just int +- Maybe models int32/int64 should be changed to just int - Add checks for duration of tests that include any WaitN/any blocking - Add more integration tests - RateLimit diff --git a/internal/client_test.go b/internal/client_test.go index 4a3514e..3d2051a 100644 --- a/internal/client_test.go +++ b/internal/client_test.go @@ -119,8 +119,6 @@ func TestRequests(t *testing.T) { bodyBytes, err := io.ReadAll(equinoxReq.Request.Body) require.NoError(t, err) require.Equal(t, expectedBody, bodyBytes) - require.Equal(t, "application/json", equinoxReq.Request.Header.Get("Content-Type")) - require.Equal(t, "application/json", equinoxReq.Request.Header.Get("Accept")) require.Equal(t, config.Key, equinoxReq.Request.Header.Get("X-Riot-Token")) }) @@ -147,8 +145,6 @@ func TestRequests(t *testing.T) { require.Equal(t, expectedURL, equinoxReq.Request.URL.String()) require.Nil(t, equinoxReq.Request.Body) - require.Equal(t, "application/json", equinoxReq.Request.Header.Get("Content-Type")) - require.Equal(t, "application/json", equinoxReq.Request.Header.Get("Accept")) require.Equal(t, config.Key, equinoxReq.Request.Header.Get("X-Riot-Token")) })