|
|
@ -268,7 +268,8 @@ func MakeRequest(t testing.TB, req *http.Request, expectedStatus int) *TestRespo |
|
|
|
} |
|
|
|
mac.ServeHTTP(respWriter, req) |
|
|
|
if expectedStatus != NoExpectedStatus { |
|
|
|
assert.EqualValues(t, expectedStatus, respWriter.HeaderCode) |
|
|
|
assert.EqualValues(t, expectedStatus, respWriter.HeaderCode, |
|
|
|
"Request URL: %s", req.URL.String()) |
|
|
|
} |
|
|
|
return &TestResponse{ |
|
|
|
HeaderCode: respWriter.HeaderCode, |
|
|
|