Skip to content

Commit

Permalink
Remove unused name field
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudhartert-db committed Jun 23, 2024
1 parent 58b0d43 commit 97d8f5c
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions apierr/error_override_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

func TestApplyOverrides(t *testing.T) {
testCases := []struct {
name string
initialError *APIError
path string
method string
Expand Down Expand Up @@ -80,20 +79,18 @@ func TestApplyOverrides(t *testing.T) {
}

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
resp := &http.Response{
Request: &http.Request{
URL: &url.URL{
Path: tc.path,
},
Method: tc.method,
resp := &http.Response{
Request: &http.Request{
URL: &url.URL{
Path: tc.path,
},
StatusCode: tc.initialError.StatusCode,
}
Method: tc.method,
},
StatusCode: tc.initialError.StatusCode,
}

applyOverrides(context.Background(), tc.initialError, resp)
applyOverrides(context.Background(), tc.initialError, resp)

assert.ErrorIs(t, tc.initialError, tc.expectedError)
})
assert.ErrorIs(t, tc.initialError, tc.expectedError)
}
}

0 comments on commit 97d8f5c

Please sign in to comment.