From c2bbc2291aaa1992f00c227ba66251866b86afe9 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 12 Jun 2018 14:35:19 -0700 Subject: [PATCH] add additional checks for test that passes inconsistently (#7051) --- .../powershell/Modules/Microsoft.PowerShell.Core/Job.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) 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" {