Skip to content

Commit 0e0a027

Browse files
committed
fix test
1 parent d4bf984 commit 0e0a027

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

instrumentation/spring/spring-kafka-2.7/javaagent/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ testing {
5151
targets {
5252
all {
5353
testTask.configure {
54-
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
55-
5654
jvmArgs("-Dotel.instrumentation.kafka.experimental-span-attributes=false")
5755
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=false")
5856

@@ -65,10 +63,12 @@ testing {
6563
}
6664

6765
tasks {
68-
test {
66+
withType<Test>().configureEach {
6967
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
68+
systemProperty("testLatestDeps", latestDepTest)
69+
}
7070

71-
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
71+
test {
7272
jvmArgs("-Dotel.instrumentation.kafka.experimental-span-attributes=true")
7373
jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
7474

0 commit comments

Comments
 (0)