Skip to content

Commit 18fa623

Browse files
fix ScopeEventTest failure
1 parent e9e0fda commit 18fa623

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dd-trace-core/jfr-openjdk/src/test/groovy/datadog/trace/core/jfr/openjdk/ScopeEventTest.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import static datadog.trace.api.ConfigDefaults.DEFAULT_SERVICE_NAME
2323
@Requires({ jvm.java11Compatible })
2424
class ScopeEventTest extends DDSpecification {
2525
@Rule
26-
public final RestoreSystemProperties restoreSystemProperties = new RestoreSystemProperties()
27-
26+
public RestoreSystemProperties restoreSystemProperties = new RestoreSystemProperties()
27+
2828
private static final Duration SLEEP_DURATION = Duration.ofSeconds(1)
2929

3030
def writer = new ListWriter()
@@ -114,6 +114,7 @@ class ScopeEventTest extends DDSpecification {
114114
setup:
115115
ConfigUtils.updateConfig {
116116
System.setProperty("dd.${Config.PROFILING_ENABLED}", "false")
117+
System.setProperty("dd.${Config.HEALTH_METRICS_ENABLED}", "false")
117118
}
118119
SystemAccess.enableJmx()
119120
def recording = JfrHelper.startRecording()

0 commit comments

Comments
 (0)