Skip to content

Commit

Permalink
[ISSUE apache#4047] fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangShuJu committed Apr 17, 2024
1 parent 7bfadbb commit c849912
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}


Expand Down

0 comments on commit c849912

Please sign in to comment.