Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc committed Jan 16, 2024
1 parent 1dbd120 commit a9dcdfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,7 @@ public void testReadCommittedWithCompaction() throws Exception{
.topic(topic)
.subscriptionName("sub")
.subscriptionType(SubscriptionType.Exclusive)
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
.readCompacted(true)
.subscribe();
List<String> result = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2190,9 +2190,11 @@ public void testCompactionWithTTL() throws Exception {
});

@Cleanup
Consumer<String> consumer =
pulsarClient.newConsumer(Schema.STRING).topic(topicName).subscriptionName(subName).readCompacted(true)
.subscribe();
Consumer<String> consumer = pulsarClient.newConsumer(Schema.STRING).topic(topicName)
.subscriptionName("sub-2")
.readCompacted(true)
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
.subscribe();

List<String> result = new ArrayList<>();
while (true) {
Expand Down

0 comments on commit a9dcdfc

Please sign in to comment.