Skip to content

Commit 35abf7d

Browse files
committed
waitForTraces
1 parent c379244 commit 35abf7d

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void setUp() throws SQLException {
4949
// Initialize the connection pool to trigger H2's internal schema setup
5050
// This prevents internal H2 spans from appearing in the test assertions
5151
dataSource.getConnection().close();
52+
testing.waitForTraces(1);
5253
testing.clearData();
5354
}
5455

0 commit comments

Comments
 (0)