Skip to content

Commit 8092e60

Browse files
committed
fix ci test
1 parent 2c304a5 commit 8092e60

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

instrumentation/jdbc/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/jdbc/test/JdbcInstrumentationTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ void testGetConnection(
10411041
throws SQLException {
10421042
// Tomcat's pool doesn't work because the getConnection method is
10431043
// implemented in a parent class that doesn't implement DataSource
1044-
boolean recursive = datasource instanceof EmbeddedDataSource;
10451044

10461045
if (init != null) {
10471046
init.accept(datasource);
@@ -1073,14 +1072,6 @@ void testGetConnection(
10731072
.hasKind(SpanKind.INTERNAL)
10741073
.hasParent(trace.getSpan(0))
10751074
.hasAttributesSatisfyingExactly(attributesAssertions)));
1076-
if (recursive) {
1077-
assertions.add(
1078-
span ->
1079-
span.hasName(datasource.getClass().getSimpleName() + ".getConnection")
1080-
.hasKind(SpanKind.INTERNAL)
1081-
.hasParent(trace.getSpan(1))
1082-
.hasAttributesSatisfyingExactly(attributesAssertions));
1083-
}
10841075
trace.hasSpansSatisfyingExactly(assertions);
10851076
});
10861077
}

0 commit comments

Comments
 (0)