Skip to content

Commit

Permalink
Fix dead letter tests sharing the same topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Preuß authored and sobychacko committed Sep 6, 2022
1 parent 25dcfab commit a57c823
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ void listen(String msg) {
throw new RuntimeException("fail " + msg);
}

@PulsarListener(id = "dlqListener", subscriptionType = "dlqListenerSubscription", topics = "dlq-topic")
@PulsarListener(id = "dlqListener", subscriptionType = "dlqListenerSubscription", topics = "dlpt-dlq-topic")
void listenDlq(String msg) {
dlqLatch.countDown();
}

@Bean
DeadLetterPolicy deadLetterPolicy() {
return DeadLetterPolicy.builder().maxRedeliverCount(1).deadLetterTopic("dlq-topic").build();
return DeadLetterPolicy.builder().maxRedeliverCount(1).deadLetterTopic("dlpt-dlq-topic").build();
}

}
Expand Down

0 comments on commit a57c823

Please sign in to comment.