diff --git a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/StartOperationActivityTests.cs b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/StartOperationActivityTests.cs index 21d78bb11..9d18f0f66 100644 --- a/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/StartOperationActivityTests.cs +++ b/BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/StartOperationActivityTests.cs @@ -199,11 +199,7 @@ public void BasicStartOperationWithStartedActivityInScopeOfUnrelatedActivity() Assert.AreEqual(telemetry, this.sendItems.Single()); -#if NET6_0_OR_GREATER Assert.IsNotNull(Activity.Current); -#else - Assert.IsNull(Activity.Current); -#endif var request = this.sendItems.Single() as RequestTelemetry; Assert.IsNotNull(request);