Skip to content

Commit

Permalink
Fixed response map
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Buddharaju <sahilbud@amazon.com>
  • Loading branch information
Sahil Buddharaju committed Dec 10, 2024
1 parent f546760 commit 84f8736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public void testTrainModel_success_methodOverrideWithCompressionMode() throws Ex
String responseBody = EntityUtils.toString(getResponse.getEntity());
assertNotNull(responseBody);

Map<String, Object> responseMap = createParser(MediaTypeRegistry.getDefaultMediaType().xContent(), responseBody).map();
Map<String, Object> responseMap = createParser(XContentType.JSON.xContent(), responseBody).map();

assertEquals(modelId, responseMap.get(MODEL_ID));

Expand Down

0 comments on commit 84f8736

Please sign in to comment.