diff --git a/Tests/DatadogSDKTesting/NetworkInstrumentation/DDNetworkInstrumentationTests.swift b/Tests/DatadogSDKTesting/NetworkInstrumentation/DDNetworkInstrumentationTests.swift index acec9dc3..594e833e 100644 --- a/Tests/DatadogSDKTesting/NetworkInstrumentation/DDNetworkInstrumentationTests.swift +++ b/Tests/DatadogSDKTesting/NetworkInstrumentation/DDNetworkInstrumentationTests.swift @@ -19,7 +19,7 @@ class DDNetworkInstrumentationTests: XCTestCase { DDEnvironmentValues.environment[ConfigurationValues.DD_DISABLE_TEST_INSTRUMENTING.rawValue] = "1" DDTestMonitor.env = DDEnvironmentValues() DDTestMonitor.instance = DDTestMonitor() - DDTestMonitor.instance?.initializationWorkQueue.waitUntilAllOperationsAreFinished() + DDTestMonitor.instance?.instrumentationWorkQueue.waitUntilAllOperationsAreFinished() let tracer = DDTestMonitor.tracer OpenTelemetrySDK.instance.tracerProvider.addSpanProcessor(testSpanProcessor) DDTestMonitor.instance?.networkInstrumentation = DDNetworkInstrumentation()