This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
Restore-TestEnvironment remains PSModulePath added by Initialize-TestEnvironment #70
Labels
bug
The issue is a bug.
Description of Issue
Restore-TestEnvironment
could not handleInitialize-TestEnvironment
added path.Detail
Initialize-TestEnvironment adding current Test DSC Module's Root Path, which retrieved at here https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L347, to the Machine's PSmodulePath at https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L376
It's trying to pass $OldModulePath info, https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L393 but ModuleRoot is remain after
Restore-TestEnvironment
has ran.Expectation
Should completely remove Test Module Path from PSModulePath.
The text was updated successfully, but these errors were encountered: