Skip to content

Commit

Permalink
[MINOR] remove duplicate test case in MessageChunkingTest (apache#9147)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifepuzzlefun authored Jan 10, 2021
1 parent ac0e15d commit ca93c1a
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ protected void cleanup() throws Exception {
super.internalCleanup();
}

@Test
public void testInvalidConfig() throws Exception {
final String topicName = "persistent://my-property/my-ns/my-topic1";
ProducerBuilder<byte[]> producerBuilder = pulsarClient.newProducer().topic(topicName);
// batching and chunking can't be enabled together
try {
Producer<byte[]> producer = producerBuilder.enableChunking(true).enableBatching(true).create();
fail("producer creation should have fail");
} catch (IllegalArgumentException ie) {
// Ok
}
}

@Test
public void testLargeMessage() throws Exception {
Expand Down

0 comments on commit ca93c1a

Please sign in to comment.