Fix Invoke-Command remote debugging test failure in nightly build (#3294)

This commit is contained in:
Paul Higinbotham 2017-03-09 20:14:26 -08:00 committed by Dongbo Wang
parent d59627f9ae
commit 7cea291475

View file

@ -149,8 +149,6 @@ Describe "Invoke-Command remote debugging tests" -Tags 'Feature' {
[powershell] $ps2 = [powershell]::Create()
$ps2.Runspace = $rs2
$remoteSession = New-RemoteSession
}
}
@ -171,9 +169,18 @@ Describe "Invoke-Command remote debugging tests" -Tags 'Feature' {
}
}
BeforeEach {
$remoteSession = New-RemoteSession
}
AfterEach {
$ps.Commands.Clear()
$ps2.Commands.Clear()
Remove-PSSession $remoteSession -ErrorAction SilentlyContinue
$remoteSession = $null
}
It "Verifies that asynchronous 'Invoke-Command -RemoteDebug' is ignored" {