diff --git a/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java b/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java index 8b75b4ccb8..2ca9ee21ca 100644 --- a/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java +++ b/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java @@ -134,13 +134,7 @@ public void invokeRemoteModel_POSTMethodSuccessPath() { public void invokeRemoteModel_HeaderNull() throws ClientProtocolException, IOException { invokeRemoteModel_HeaderTest(null); } - - @Test - public void invokeRemoteModel_HeaderNotNull() throws ClientProtocolException, IOException { - Map header = new HashMap<>(); - header.put("Content-Type", "application/json"); - invokeRemoteModel_HeaderTest(header); - } + @Test public void invokeRemoteModel_POSTMethodErrorPath() { exceptionRule.expect(MLException.class);