File tree 2 files changed +6
-5
lines changed
dd-java-agent/agent-tooling
utils/test-utils/src/main/groovy/datadog/trace/test/util
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -89,3 +89,9 @@ project.tasks.compileTest_java11Java.configure {
89
89
final jmh = project. tasks. jmh
90
90
jmh. outputs. upToDateWhen { false }
91
91
jmh. dependsOn(compileTestJava)
92
+
93
+ tasks. withType(Test ). configureEach {
94
+ // same setting as AgentInstaller to avoid spurious agent-tooling test failures
95
+ // caused by ConfigTransformSpockExtension installing byte-buddy during testing
96
+ jvmArgs + = [" -Dnet.bytebuddy.raw=true" ]
97
+ }
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ import static net.bytebuddy.matcher.ElementMatchers.none
18
18
* Transforms the Config class to make its INSTANCE field non-final and volatile.
19
19
*/
20
20
class ConfigTransformSpockExtension implements IGlobalExtension {
21
- static {
22
- // same setting as AgentInstaller to avoid spurious agent-tooling test failures
23
- System . setProperty(" net.bytebuddy.raw" , " true" )
24
- }
25
-
26
21
static final String INST_CONFIG = " datadog.trace.api.InstrumenterConfig"
27
22
static final String CONFIG = " datadog.trace.api.Config"
28
23
You can’t perform that action at this time.
0 commit comments