You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic FileSystem Provider Tests.Validate behavior when access is denied.Access-denied test for 'Move-Item -Path C:\Windows\appcompat\Programs -Destination bar
Pester 442 ms
Error message:
Expected string length 70 but was 65. Strings differ at index 0.
Expected: {MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand}
But was: {RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand}
-----------^
Error stack trace:
at line: 241 in C:\projects\powershell\test\powershell\Modules\Microsoft.PowerShell.Management\FileSystem.Tests.ps1
241: $err | Should Be $expectedError
We're still seeing intermittent failures in the access denied tests due to PowerShell running longer than 10 seconds. When this occurs, the remaining tests in the context can fail due to the previous PowerShell instance completing after the next test starts (i.e., the $donefile and $errFile from test 1 are not created until test 2 starts, defeating the AfterEach cleanup and the wait logic in the subsequent test.
The fix should address this by using a unique done and error file as well as increasing the timeout.
Activity
dantraMSFT commentedon Sep 8, 2017
Leave a comment
dantraMSFT commentedon Sep 8, 2017
We're still seeing intermittent failures in the access denied tests due to PowerShell running longer than 10 seconds. When this occurs, the remaining tests in the context can fail due to the previous PowerShell instance completing after the next test starts (i.e., the $donefile and $errFile from test 1 are not created until test 2 starts, defeating the AfterEach cleanup and the wait logic in the subsequent test.
The fix should address this by using a unique done and error file as well as increasing the timeout.