diff --git a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/ItemLevelSpanTest.java b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/ItemLevelSpanTest.java index 71c36781713f..4629c767373d 100644 --- a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/ItemLevelSpanTest.java +++ b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/ItemLevelSpanTest.java @@ -241,6 +241,8 @@ void shouldTraceAllItemOperationsOnAparallelItemsJob() { span.hasName("BatchJob parallelItemsJob.parallelItemsStep.ItemWrite") .hasKind(SpanKind.INTERNAL) .hasParent(trace.getSpan(14))); + + trace.hasSpansSatisfyingExactly(assertions); }); } diff --git a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java index f745997fc3d0..e029484c93a0 100644 --- a/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java +++ b/instrumentation/spring/spring-batch-3.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/batch/v3_0/item/JsrConfigItemLevelSpanTest.java @@ -15,9 +15,4 @@ public class JsrConfigItemLevelSpanTest extends ItemLevelSpanTest { public JsrConfigItemLevelSpanTest() { super(runner); } - - @Override - void shouldTraceAllItemOperationsOnAparallelItemsJob() { - // does not work - not sure why - } }