Browse Source

Error message for integration test (#2410)

Ethan Koenig 3 years ago
parent
commit
d23b36c598
1 changed files with 2 additions and 1 deletions
  1. 2 1
      integrations/integration_test.go

+ 2 - 1
integrations/integration_test.go

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