]> source.dussan.org Git - gitea.git/commitdiff
Include HTTP method in test error message (#2815)
authorEthan Koenig <ethantkoenig@gmail.com>
Wed, 1 Nov 2017 05:54:24 +0000 (22:54 -0700)
committerBo-Yi Wu <appleboy.tw@gmail.com>
Wed, 1 Nov 2017 05:54:24 +0000 (00:54 -0500)
integrations/integration_test.go

index 4573a9cb130306d6b6dd1d54f5e45e6807f5b751..55014b5a41d194c3742ba86bd89ae3f3e742cf08 100644 (file)
@@ -284,7 +284,7 @@ func MakeRequest(t testing.TB, req *http.Request, expectedStatus int) *TestRespo
        mac.ServeHTTP(respWriter, req)
        if expectedStatus != NoExpectedStatus {
                assert.EqualValues(t, expectedStatus, respWriter.HeaderCode,
-                       "Request URL: %s", req.URL.String())
+                       "Request: %s %s", req.Method, req.URL.String())
        }
        return &TestResponse{
                HeaderCode: respWriter.HeaderCode,