Disable strict context check for elasticsearch 6 tests (#3917)
* Disable strict context check for elasticsearch 6 tests * Mongo too
This commit is contained in:
parent
e439c153c8
commit
c9619c0626
|
@ -43,4 +43,5 @@ dependencies {
|
||||||
tasks.withType<Test>().configureEach {
|
tasks.withType<Test>().configureEach {
|
||||||
// TODO run tests both with and without experimental span attributes
|
// TODO run tests both with and without experimental span attributes
|
||||||
jvmArgs("-Dotel.instrumentation.elasticsearch.experimental-span-attributes=true")
|
jvmArgs("-Dotel.instrumentation.elasticsearch.experimental-span-attributes=true")
|
||||||
|
jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,4 +27,8 @@ tasks {
|
||||||
named<Test>("test") {
|
named<Test>("test") {
|
||||||
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
|
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Test>().configureEach {
|
||||||
|
jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue