mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Error message for integration test (#2410)
This commit is contained in:
		@@ -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,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user