Skip to content

Commit

Permalink
Cleanup test side-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Dec 20, 2024
1 parent c9f2377 commit a457acb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import datadog.trace.api.DDTraceId
import datadog.trace.api.DynamicConfig
import datadog.trace.api.time.TimeSource
import datadog.trace.bootstrap.instrumentation.api.AgentTracer.NoopPathwayContext
import datadog.trace.core.datastreams.DataStreamsMonitoring

import static datadog.trace.api.sampling.PrioritySampling.*
import static datadog.trace.api.sampling.SamplingMechanism.*
Expand Down Expand Up @@ -136,7 +137,11 @@ class XRayHttpInjectorTest extends DDCoreSpecification {
setup:
def writer = new ListWriter()
def timeSource = Mock(TimeSource)
def tracer = tracerBuilder().writer(writer).timeSource(timeSource).build()
def tracer = tracerBuilder()
.dataStreamsMonitoring(Mock(DataStreamsMonitoring))
.writer(writer)
.timeSource(timeSource)
.build()
final DDSpanContext mockedContext =
new DDSpanContext(
DDTraceId.from("1"),
Expand Down

0 comments on commit a457acb

Please sign in to comment.