Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mitigate intermittent failures in access denied tests. (PowerShell#4788)
This change mitigates intermittent timeout failures in the access denied tests as well as fixes unintended cross-test dependencies. If PowerShell takes longer that 10 seconds to complete a race can cause the subsequent test to pick up the output file of the previous test and fail (i.e., the expected output error file already exists from the previous test because it was created by the long running PowerShell process after the second test started.) Worse case, the failure cascades causing the race to propagate through the remaining tests in the set. The fix is two fold: 1: Increase the timeout for waiting for the launched powershell process. (mitigation) 2: Ensure each uses a unique name for the error and done files to avoid polluting the next test.
- Loading branch information