Skip to content

Commit cbca786

Browse files
committed
GH-2220: Fix Test After Back Port
1 parent 0072574 commit cbca786

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-kafka/src/test/java/org/springframework/kafka/retrytopic/RetryTopicConfigurerTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,12 @@ void shouldInstantiateIfNotInContainer() {
362362
@Test
363363
@SuppressWarnings("deprecation")
364364
void shouldLogConsumerRecordMessage() {
365-
ListenerUtils.setLogOnlyMetadata(false);
365+
ListenerUtils.setLogOnlyMetadata(true);
366366
RetryTopicConfigurer.LoggingDltListenerHandlerMethod method =
367367
new RetryTopicConfigurer.LoggingDltListenerHandlerMethod();
368368
method.logMessage(consumerRecordMessage);
369369
then(consumerRecordMessage).should().topic();
370+
ListenerUtils.setLogOnlyMetadata(false);
370371
}
371372

372373
@Test

0 commit comments

Comments
 (0)