diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Job.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Job.Tests.ps1 index c997bb84cb..8aeefa09ee 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Job.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Job.Tests.ps1 @@ -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" {