Skip to content

Commit

Permalink
add log to locate root cause of flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Aug 6, 2024
1 parent 920685d commit fb2859f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ public static Map parseResponseToMap(Response response) throws IOException {
HttpEntity entity = response.getEntity();
assertNotNull(response);
String entityString = TestHelper.httpEntityToString(entity);
assertEquals(String.format("response status is not success, raw response is: %s", entityString), 200, response.getStatusLine().getStatusCode());
return StringUtils.gson.fromJson(entityString, Map.class);
}

Expand Down

0 comments on commit fb2859f

Please sign in to comment.