mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix cleanup in PSResourceGet test (#24339)
This commit is contained in:
+8
-9
@@ -331,6 +331,14 @@ Describe "PSResourceGet - Script tests (Admin)" -Tags @('Feature', 'RequireAdmin
|
||||
}
|
||||
}
|
||||
|
||||
function FinalCleanUp
|
||||
{
|
||||
if(Test-Path $TempDir)
|
||||
{
|
||||
Remove-Item -Path $TempDir -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
||||
Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
|
||||
BeforeAll {
|
||||
@@ -396,12 +404,3 @@ Describe "PSResourceGet - ACR tests" -tags "Feature" {
|
||||
FinalCleanUp
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function FinalCleanUp
|
||||
{
|
||||
if(Test-Path $TempDir)
|
||||
{
|
||||
Remove-Item -Path $TempDir -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user