forked from gitea/gitea
1
0
Fork 0

Error message for integration test (#2410)

This commit is contained in:
Ethan Koenig 2017-08-28 06:36:02 -07:00 committed by Lunny Xiao
parent 8e61823ec4
commit d23b36c598
1 changed files with 2 additions and 1 deletions

View File

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