pandaapo commented on code in PR #4817:
URL: https://github.com/apache/eventmesh/pull/4817#discussion_r1570371574


##########
eventmesh-connectors/eventmesh-connector-chatgpt/src/test/java/org/apache/eventmesh/connector/chatgpt/source/connector/ChatGPTSourceConnectorTest.java:
##########
@@ -108,17 +108,6 @@ void testPoll() throws Exception {
 
         List<ConnectRecord> res1 = connector.poll();
         Assertions.assertEquals(batchSize, res1.size());
-
-        // test invalid requests
-        TestEvent event = new TestEvent();
-        event.type = "com.example.someevent";
-        event.source = "/mycontext";
-        event.datacontenttype = "text/plain";
-        event.text = expectedMessage;
-        HttpPost invalidPost = new HttpPost(uri);
-        invalidPost.setEntity(new StringEntity(JsonUtils.toJSONString(event)));
-        HttpResponse resp = httpClient.execute(invalidPost);
-        Assertions.assertEquals(HttpStatus.SC_BAD_REQUEST, 
resp.getStatusLine().getStatusCode());

Review Comment:
   What is your reason for removing this piece of your test code?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org
For additional commands, e-mail: issues-h...@eventmesh.apache.org

Reply via email to