diff --git a/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ImperativeIntegrationTests.java b/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ImperativeIntegrationTests.java index 92c9ae495..e5290ec68 100644 --- a/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ImperativeIntegrationTests.java +++ b/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ImperativeIntegrationTests.java @@ -78,7 +78,7 @@ public SampleTestRunnerConsumer yourCode() { System.out.println(((SimpleMeterRegistry) meterRegistry).getMetersAsString()); - assertThat(tracer.getFinishedSpans()).hasSize(6); + assertThat(tracer.getFinishedSpans()).hasSizeGreaterThanOrEqualTo(5); for (FinishedSpan finishedSpan : tracer.getFinishedSpans()) { diff --git a/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ReactiveIntegrationTests.java b/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ReactiveIntegrationTests.java index 9ec73ac40..631ae5262 100644 --- a/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ReactiveIntegrationTests.java +++ b/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability/ReactiveIntegrationTests.java @@ -90,7 +90,7 @@ public SampleTestRunnerConsumer yourCode() { System.out.println(((SimpleMeterRegistry) meterRegistry).getMetersAsString()); - assertThat(tracer.getFinishedSpans()).hasSizeGreaterThanOrEqualTo(6); + assertThat(tracer.getFinishedSpans()).hasSizeGreaterThanOrEqualTo(5); }; } }