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

Fix test for NuGetLocator when NUGET_PACKAGES is defined #233

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

atifaziz
Copy link
Contributor

@atifaziz atifaziz commented Oct 6, 2024

This PR fixes a test for NuGetLocator, which fails when NUGET_PACKAGES is defined, which was the case on my machine. NuGetLocator prioritises NUGET_PACKAGES if it's defined. The removes the NUGET_PACKAGES environment variable when the USERPROFILE case is being tested.

The environment variables are saved and restored before and after each test to factor out the common code.

@tonybaloney tonybaloney merged commit eac81e0 into tonybaloney:main Oct 6, 2024
37 checks passed
@atifaziz atifaziz deleted the fix/nuget-locator-test branch October 7, 2024 06:35
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