Disable strict context check for elasticsearch 6 tests (#3917)

* Disable strict context check for elasticsearch 6 tests

* Mongo too
This commit is contained in:
Trask Stalnaker 2021-08-23 22:46:04 -07:00 committed by GitHub
parent e439c153c8
commit c9619c0626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -43,4 +43,5 @@ dependencies {
tasks.withType<Test>().configureEach {
// TODO run tests both with and without experimental span attributes
jvmArgs("-Dotel.instrumentation.elasticsearch.experimental-span-attributes=true")
jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
}

View File

@ -27,4 +27,8 @@ tasks {
named<Test>("test") {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
}
}
}
tasks.withType<Test>().configureEach {
jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
}