[macOS] Update free space test condition to 14 GB (#10546)

This commit is contained in:
Erik Bershel
2024-09-03 22:58:36 +02:00
committed by GitHub
parent 89f5712cad
commit 3926b864c3

View File

@@ -3,11 +3,12 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion $os = Get-OSVersion
Describe "Disk free space" { Describe "Disk free space" {
It "Image has more than 10GB free space" { It "Image has more than 14GB free space" {
# we should have at least 10 GB of free space on macOS images # we should have at least 14 GB of free space on macOS images
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#capabilities-and-limitations # 10GB here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#capabilities-and-limitations
# 14GB here: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
$freeSpace = (Get-PSDrive "/").Free $freeSpace = (Get-PSDrive "/").Free
$freeSpace | Should -BeGreaterOrEqual 10GB $freeSpace | Should -BeGreaterOrEqual 14GB
} }
} }