Skip to content

Commit

Permalink
[fix][txn] fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihongzhou committed Sep 26, 2023
1 parent a97446e commit 1174b57
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,11 @@ private void testMsgsInPendingAckStateWouldNotGetTheConsumerStuck() throws Excep
final String topicName = NAMESPACE1 + "/testMsgsInPendingAckStateWouldNotGetTheConsumerStuck";
final String subscription = "test";

@Cleanup
Producer<Integer> producer = pulsarClient.newProducer(Schema.INT32)
.topic(topicName)
.create();
@Cleanup
Consumer<Integer> consumer = pulsarClient.newConsumer(Schema.INT32)
.topic(topicName)
.subscriptionName(subscription)
Expand Down Expand Up @@ -294,6 +296,7 @@ private void testMsgsInPendingAckStateWouldNotGetTheConsumerStuck() throws Excep

// close and re-create consumer
consumer.close();
@Cleanup
Consumer<Integer> consumer2 = pulsarClient.newConsumer(Schema.INT32)
.topic(topicName)
.receiverQueueSize(numStep3Receive)
Expand Down

0 comments on commit 1174b57

Please sign in to comment.