Update test response
This commit is contained in:
parent
6d2bfb776c
commit
5e7f9465b2
@ -294,7 +294,7 @@ func testControllerRespTestCases(t *testing.T, tc respTestCase) {
|
||||
|
||||
response := w.Result()
|
||||
if response.ContentLength != tc.ExpectedContentLength {
|
||||
t.Errorf("TestResponse() unable to validate content length for %s", tc.Accept)
|
||||
t.Errorf("TestResponse() unable to validate content length %d for %s", response.ContentLength, tc.Accept)
|
||||
}
|
||||
|
||||
if response.StatusCode != http.StatusOK {
|
||||
@ -307,6 +307,6 @@ func testControllerRespTestCases(t *testing.T, tc respTestCase) {
|
||||
}
|
||||
bodyString := string(bodyBytes)
|
||||
if bodyString != tc.ExpectedResponse {
|
||||
t.Errorf("TestResponse() failed to validate response body for %s", tc.Accept)
|
||||
t.Errorf("TestResponse() failed to validate response body '%s' for %s", bodyString, tc.Accept)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user