mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Include HTTP method in test error message (#2815)
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user