Skip to content

Commit 3d1a0eb

Browse files
Fix W3C tests
All TFMs are referencing the .NET 10 package, so the workaround needs applying to all of them.
1 parent 097d765 commit 3d1a0eb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests/W3CTraceContextTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ public sealed class W3CTraceContextTests : IDisposable
2424
private readonly HttpClient httpClient = new();
2525
private readonly ITestOutputHelper output;
2626

27-
#if NET10_0_OR_GREATER
2827
static W3CTraceContextTests()
2928
{
3029
// See https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/10.0/default-trace-context-propagator
3130
DistributedContextPropagator.Current = DistributedContextPropagator.CreatePreW3CPropagator();
3231
}
33-
#endif
3432

3533
public W3CTraceContextTests(ITestOutputHelper output)
3634
{

0 commit comments

Comments
 (0)