Fix running tests locally (#1365)

This commit is contained in:
Trask Stalnaker 2020-10-11 22:52:16 -07:00 committed by GitHub
parent c739f7db6b
commit 6218f6a998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,18 @@ import io.opentelemetry.instrumentation.test.AgentTestRunner
class AkkaActorTest extends AgentTestRunner {
// TODO this test doesn't really depend on otel.integration.akka_context_propagation.enabled=true
// but setting this property here is needed when running both this test
// and AkkaExecutorInstrumentationTest in the run, otherwise get
// "class redefinition failed: attempted to change superclass or interfaces"
// on whichever test runs second
// (related question is what's the purpose of this test if it doesn't depend on any of the
// instrumentation in this module, is it just to verify that the instrumentation doesn't break
// this scenario?)
static {
System.setProperty("otel.integration.akka_context_propagation.enabled", "true")
}
def "akka #testMethod"() {
setup:
AkkaActors akkaTester = new AkkaActors()