Skip to content

Commit e00368d

Browse files
committed
run test only with latest deps
1 parent 25b7483 commit e00368d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

instrumentation/jdbc/javaagent/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ tasks {
104104

105105
tasks {
106106
withType<Test>().configureEach {
107+
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
107108
jvmArgs("-Dotel.instrumentation.jdbc.experimental.transaction.enabled=true")
108109
}
109110
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ void testObjectWithTypePreparedStatementParameter(
344344
String url,
345345
String table)
346346
throws SQLException {
347+
// we are using old database drivers that don't support the tested setObject method
348+
Assumptions.assumeTrue(Boolean.getBoolean("testLatestDeps"));
349+
347350
test(
348351
system,
349352
connection,

0 commit comments

Comments
 (0)