Skip to content

Commit

Permalink
Removed logic of the Az.Resources [Cleanup] in SmokeTest/RmCoreSmokeT…
Browse files Browse the repository at this point in the history
…ests.ps1.
  • Loading branch information
LucasYao93 committed Jan 11, 2021
1 parent b928300 commit c52b82b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions tools/Test/SmokeTest/RmCoreSmokeTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,7 @@ $resourceCleanUpCommands = @(
}
} while ($true)
}},
@{Name = "Az.Resources [Cleanup]"; Command = {
$loopLimit = 0
do {
try {
Remove-AzResourceGroup -Name $resourceGroupName -Force -ErrorAction Stop
break
}
catch {
if (++$loopLimit -gt 30)
{
Write-Warning "Give up Az.Resources [Cleanup]"
break
} else {
Start-Sleep -Seconds 30
Write-Warning "Retry Az.Resources [Cleanup]"
}
}
} while ($true)
}}
@{Name = "Az.Resources [Cleanup]"; Command = {Remove-AzResourceGroup -Name $resourceGroupName -Force -ErrorAction Stop}}
)
$resourceTestCommands = @(
@{Name = "Az.Storage [Management]"; Command = {New-AzStorageAccount -Name $storageAccountName -SkuName Standard_LRS -Location westus -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
Expand Down

0 comments on commit c52b82b

Please sign in to comment.