Skip to content

Commit

Permalink
[Instrumentation.StackExchangeRedis] Fix tests on .NET9 (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek authored Nov 15, 2024
1 parent 37a80ca commit cf9384a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void ProfilerCommandToActivity_UsesFlagsForFlagsAttribute()
Assert.NotNull(result);
Assert.NotNull(result.GetTagValue(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName));

#if NET8_0
#if NET
Assert.Equal("FireAndForget, NoRedirect", result.GetTagValue(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName));
#else
Assert.Equal("PreferMaster, FireAndForget, NoRedirect", result.GetTagValue(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<!-- OmniSharp/VS Code requires TargetFrameworks to be in descending order for IntelliSense and analysis. -->
<TargetFrameworks>$(SupportedNetTargetsWithoutNet9)</TargetFrameworks>
<TargetFrameworks>$(SupportedNetTargets)</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion)</TargetFrameworks>
<Description>Unit test project for OpenTelemetry StackExchangeRedis instrumentation.</Description>
</PropertyGroup>
Expand Down

0 comments on commit cf9384a

Please sign in to comment.