Skip to content

Commit 0304d33

Browse files
committed
fix
1 parent 35abf7d commit 0304d33

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/jdbc/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/jdbc/test

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setUp() throws SQLException {
4848

4949
// Initialize the connection pool to trigger H2's internal schema setup
5050
// This prevents internal H2 spans from appearing in the test assertions
51-
dataSource.getConnection().close();
51+
testing.runWithSpan("parent", () -> dataSource.getConnection().close());
5252
testing.waitForTraces(1);
5353
testing.clearData();
5454
}

0 commit comments

Comments
 (0)