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 {