File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/org/opensearch/neuralsearch Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3131import org .opensearch .common .util .concurrent .ThreadContext ;
3232import org .opensearch .common .xcontent .XContentType ;
3333import org .opensearch .core .xcontent .DeprecationHandler ;
34+ import org .opensearch .core .xcontent .MediaType ;
3435import org .opensearch .core .xcontent .NamedXContentRegistry ;
3536import org .opensearch .core .xcontent .XContentParser ;
3637import org .opensearch .test .rest .OpenSearchRestTestCase ;
@@ -131,7 +132,7 @@ protected boolean preserveIndicesUponCompletion() {
131132 @ After
132133 public void deleteExternalIndices () throws IOException {
133134 final Response response = client ().performRequest (new Request ("GET" , "/_cat/indices?format=json" + "&expand_wildcards=all" ));
134- final XContentType xContentType = XContentType .fromMediaType (response .getEntity ().getContentType (). getValue ( ));
135+ final MediaType xContentType = MediaType .fromMediaType (String . valueOf ( response .getEntity ().getContentType ()));
135136 try (
136137 final XContentParser parser = xContentType .xContent ()
137138 .createParser (
You can’t perform that action at this time.
0 commit comments