Skip to content

Commit

Permalink
improve CaptureResponse argument (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
satorunooshie authored Mar 18, 2023
1 parent fbd41ae commit b6c2d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func PrettyJSON(t *testing.T, r *http.Response) {
}

// CaptureResponse unmarshals JSON response.
func CaptureResponse(ptr any) ResponseFilter {
func CaptureResponse[T any](ptr *T) ResponseFilter {
return func(t *testing.T, r *http.Response) {
t.Helper()

Expand Down

0 comments on commit b6c2d22

Please sign in to comment.