diff --git a/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java b/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java index 7f691e5c0b..09e7a0c804 100644 --- a/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java +++ b/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java @@ -600,14 +600,6 @@ public void testOpenAITextEmbeddingModel_UTF8() throws IOException, InterruptedE }, null); } - public void testOpenAITextEmbeddingModel_ISO8859_1() throws IOException, InterruptedException { - testOpenAITextEmbeddingModel("ISO-8859-1", null, (exception) -> { - assertTrue(exception instanceof org.opensearch.client.ResponseException); - String stackTrace = ExceptionUtils.getStackTrace(exception); - assertTrue(stackTrace.contains("'utf-8' codec can't decode byte 0xeb")); - }); - } - private void testOpenAITextEmbeddingModel(String charset, Consumer verifyResponse, Consumer verifyException) throws IOException, InterruptedException {