openvidu-test-e2e: log 500 error

pull/204/head
pabloFuente 2019-02-19 12:11:45 +01:00
parent 18b8643cd8
commit cd347d6064
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ public class CustomHttpClient {
log.error(e.getMessage()); log.error(e.getMessage());
Assert.fail("Error sending request to " + path + ": " + e.getMessage()); Assert.fail("Error sending request to " + path + ": " + e.getMessage());
} }
if (jsonResponse.getStatus() == 500) {
log.error("Internal Server Error: {}", jsonResponse.getBody().toString());
}
Assert.assertEquals(path + " expected to return status " + status, status, jsonResponse.getStatus()); Assert.assertEquals(path + " expected to return status " + status, status, jsonResponse.getStatus());
return json; return json;
} }