Skip to content

Commit 3146c32

Browse files
committed
Disable css on all okhttp3 tests
1 parent 2f25ce5 commit 3146c32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dd-java-agent/instrumentation/okhttp-3/src/test/groovy/IastOkHttp3InstrumentationTest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class IastOkHttp3InstrumentationTest extends InstrumentationSpecification {
1818
// HttpUrl gets loaded early so we have to disable the advice transformer
1919
IastHttpUrlInstrumentation.ENABLE_ADVICE_TRANSFORMER = false
2020
injectSysConfig('dd.iast.enabled', 'true')
21+
// disable tracer metrics because it uses OkHttp and class loading is
22+
// not isolated in tests
23+
injectSysConfig("trace.stats.computation.enabled", "false")
2124
}
2225

2326
@Override

dd-java-agent/instrumentation/okhttp-3/src/test/groovy/OkHttp3Test.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class OkHttp3Test extends HttpClientTest {
1414
super.configurePreAgent()
1515
// disable tracer metrics because it uses OkHttp and class loading is
1616
// not isolated in tests
17-
injectSysConfig("dd.trace.tracer.metrics.enabled", "false")
17+
injectSysConfig("trace.stats.computation.enabled", "false")
1818
}
1919

2020
@Override

0 commit comments

Comments
 (0)