Fix another Start-Process test

This one would sometimes just fail to stop the process... which is a probably a bug to be fixed.
This commit is contained in:
Andrew Schwartzmeyer
2015-12-23 13:18:00 -08:00
parent b8ca768099
commit 92368e9cba
+1 -3
View File
@@ -64,13 +64,11 @@ Describe "Start-Process" {
}
It "Should should handle stderr redirection without error" {
$process = Start-Process ping -ArgumentList $pingParamNoStop -PassThru -RedirectStandardError $tempFile
$process = Start-Process ping -ArgumentList $pingParamStop -PassThru -RedirectStandardError $tempFile
$process.Length | Should Be 1
$process.Id | Should BeGreaterThan 1
$process.ProcessName | Should Be "ping"
Stop-Process -Id $process.Id
}
It "Should should handle stdout redirection without error" {