From 1f3836c975843044bb5c67ed4024504f961ecc6f Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Tue, 13 Feb 2024 14:57:46 -0800 Subject: [PATCH] Update StartOperationActivityTests.cs --- .../StartOperationActivityTests.cs | 4 ---- 1 file changed, 4 deletions(-) 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);