mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 10:07:56 +00:00
Error message for integration test (#2410)
This commit is contained in:
parent
8e61823ec4
commit
d23b36c598
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue