Fix tests after Observation feature was added to StreamBridge

This commit is contained in:
Oleg Zhurakousky
2024-12-09 15:48:59 +01:00
parent 1349adaba3
commit 4fb9a16c99

View File

@@ -84,7 +84,7 @@ public class RabbitMultiBinderObservationTests {
// There is a race condition when we already have a reply, but the span in the
// Rabbit listener is not closed yet.
// parent -> StreamBridge -> RabbitTemplate -> Rabbit Listener -> Consumer
await().untilAsserted(() -> assertThat(SPANS.spans()).hasSize(5));
await().untilAsserted(() -> assertThat(SPANS.spans()).hasSize(6));
SpansAssert.assertThat(SPANS.spans().stream().map(BraveFinishedSpan::fromBrave).collect(Collectors.toList()))
.haveSameTraceId();
}