Skip to content

Conversation

@frosiere
Copy link
Contributor

Closes #3808

Signed-off-by: Francois Rosiere <francois.rosiere@gmail.com>
assertThat(observationContext).isInstanceOf(KafkaRecordReceiverContext.class);
replyObservationContext.set((KafkaRecordReceiverContext) observationContext);
});
Awaitility.await().atMost(Duration.ofSeconds(60)).until(() ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See AssertJ API for CompletableFuture instead.
That template.sendAndReceive() returns for us exactly one we would like to verify.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, fixed.

@artembilan artembilan merged commit 8fca3da into spring-projects:main Mar 26, 2025
3 checks passed
@artembilan
Copy link
Member

@frosiere ,
thank you for contribution; looking forward for more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable the tracing on the reply of a ReplyingKafkaTemplate

3 participants