Update test response

This commit is contained in:
Maneesh Babu M 2021-04-23 03:16:12 +00:00
parent 6d2bfb776c
commit 5e7f9465b2
No known key found for this signature in database
GPG Key ID: 1C33CD6B03582880

View File

@ -294,7 +294,7 @@ func testControllerRespTestCases(t *testing.T, tc respTestCase) {
response := w.Result() response := w.Result()
if response.ContentLength != tc.ExpectedContentLength { 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 { if response.StatusCode != http.StatusOK {
@ -307,6 +307,6 @@ func testControllerRespTestCases(t *testing.T, tc respTestCase) {
} }
bodyString := string(bodyBytes) bodyString := string(bodyBytes)
if bodyString != tc.ExpectedResponse { 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)
} }
} }