Add RetryTemplate to reactive kafka binder tests

This is needed because of a recent commit: cc04b0b13b
This commit is contained in:
Soby Chacko
2022-10-20 11:22:52 -04:00
parent 8e5f2d546e
commit 9fa26da9ca

View File

@@ -70,6 +70,7 @@ public class ReactorKafkaBinderTests {
KafkaBinderConfigurationProperties binderProps = new KafkaBinderConfigurationProperties(kafkaProperties);
KafkaTopicProvisioner provisioner = new KafkaTopicProvisioner(binderProps, kafkaProperties, prop -> {
});
provisioner.setMetadataRetryOperations(new RetryTemplate());
ReactorKafkaBinder binder = new ReactorKafkaBinder(binderProps, provisioner);
binder.setApplicationContext(mock(GenericApplicationContext.class));
@@ -123,6 +124,7 @@ public class ReactorKafkaBinderTests {
KafkaBinderConfigurationProperties binderProps = new KafkaBinderConfigurationProperties(kafkaProperties);
KafkaTopicProvisioner provisioner = new KafkaTopicProvisioner(binderProps, kafkaProperties, prop -> {
});
provisioner.setMetadataRetryOperations(new RetryTemplate());
ReactorKafkaBinder binder = new ReactorKafkaBinder(binderProps, provisioner);
binder.setApplicationContext(mock(GenericApplicationContext.class));