add additional checks for test that passes inconsistently (#7051)

This commit is contained in:
Steve Lee
2018-06-12 14:35:19 -07:00
committed by Aditya Patwardhan
parent e177fcaef6
commit c2bbc2291a
@@ -60,6 +60,9 @@ Describe "Job Cmdlet Tests" -Tag "CI" {
}
It "Stop-Job will stop a job" {
Stop-Job -Id $j.Id
$out = Receive-Job $j -ErrorVariable err
$out | Should -BeNullOrEmpty
$err | Should -BeNullOrEmpty
$j.State | Should -BeExactly "Stopped"
}
It "Remove-Job will not remove a running job" {