Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add net9 to test framework #2909

Merged
merged 3 commits into from
Dec 31, 2024
Merged

add net9 to test framework #2909

merged 3 commits into from
Dec 31, 2024

Conversation

TimothyMothra
Copy link
Member

No description provided.

@@ -143,7 +143,7 @@ private void RemoveTestEnvVarsAssociatedToModule(AppServicesHeartbeatTelemetryMo
{
foreach (var kvp in appServicesHbeatModule.WebHeartbeatPropertyNameEnvVarMap)
{
Environment.SetEnvironmentVariable(kvp.Value, string.Empty);
Environment.SetEnvironmentVariable(kvp.Value, null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like there was a runtime change.
NET8 and prior expected this call to delete the Environment Variable.
One of the tests was asserting that the Environment Variable was empty.

Starting in NET9, this was setting the Environment Variable to string.Empty, causing the same test to fail.

@TimothyMothra TimothyMothra added this to the 2.23 milestone Nov 6, 2024
@TimothyMothra TimothyMothra merged commit 404ab40 into main Dec 31, 2024
82 checks passed
@TimothyMothra TimothyMothra deleted the tilee/202410_net9 branch December 31, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants