[CSHARP-3733] Don't modify the value of environment variables in test code Created: 10/Jul/21  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Robert Stam Assignee: Dmitry Lukyanov (Inactive)
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Remove any calls to

Environment.SetEnvironmentVariable

Environment variables by definition should be passed in from the environment and not altered while the process iss running.

I think we are currently getting away with this because the original values of the environment variables are only read once, and read early enough that they are captured before some test modifies them. But this is fragile.

For the tests that are doing this, we need to find some other way to satisfy what they need that doesn't involve changing the value of environment variables on the fly.

 


Generated at Wed Feb 07 21:46:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.