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 9932396dc9..5eb97aa10d 100644 --- a/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java +++ b/plugin/src/test/java/org/opensearch/ml/rest/RestMLRemoteInferenceIT.java @@ -511,14 +511,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 {