Skip to content

Commit

Permalink
Update pulsar-broker/src/test/java/org/apache/pulsar/client/impl/Nega…
Browse files Browse the repository at this point in the history
…tiveAcksTest.java

Co-authored-by: Zixuan Liu <[email protected]>
  • Loading branch information
thetumbled and nodece authored Nov 20, 2024
1 parent 0ee1a54 commit 294079c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ public void testNegativeAcksWithBatch() throws Exception {
@Cleanup
Producer<String> producer = pulsarClient.newProducer(Schema.STRING)
.topic(topic)
.enableBatching(true)
.batchingMaxPublishDelay(1, TimeUnit.HOURS)
.batchingMaxMessages(2)
.create();
// send two messages in the same batch
producer.sendAsync("test-0");
Expand Down

0 comments on commit 294079c

Please sign in to comment.