From 3dd686027ce9768956f10b5d21ad27ef0dbf1cf0 Mon Sep 17 00:00:00 2001 From: James Truher Date: Tue, 13 Sep 2016 12:19:17 -0700 Subject: [PATCH] Add get-runspace -name test, remove runspace.close from AfterAll, dispose alone will suffice --- test/powershell/SDK/PSDebugging.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/powershell/SDK/PSDebugging.Tests.ps1 b/test/powershell/SDK/PSDebugging.Tests.ps1 index 1e016eb8e5..af289febf6 100644 --- a/test/powershell/SDK/PSDebugging.Tests.ps1 +++ b/test/powershell/SDK/PSDebugging.Tests.ps1 @@ -232,6 +232,9 @@ Describe "Runspace Debugging API tests" -tag CI { $associationId = [guid]::newguid() $runspaceInfo = [PSStandaloneMonitorRunspaceInfo]::new($runspace) } + AfterAll { + $runspace.Dispose() + } It "DebuggerUtils StartMonitoringRunspace requires non-null debugger" { try {