From 2659568389490db53770b228aecd20ad741e194a Mon Sep 17 00:00:00 2001 From: Tw93 Date: Wed, 17 Dec 2025 20:47:41 +0800 Subject: [PATCH] test: update `check_appstore_updates` test to verify skipping for performance. --- tests/system_maintenance.bats | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/system_maintenance.bats b/tests/system_maintenance.bats index 071d1a5..cca8e04 100644 --- a/tests/system_maintenance.bats +++ b/tests/system_maintenance.bats @@ -189,27 +189,18 @@ EOF [[ "$output" == *"2 formula"* ]] } -@test "check_appstore_updates reports count from softwareupdate" { +@test "check_appstore_updates is skipped for performance" { run bash --noprofile --norc <<'EOF' set -euo pipefail source "$PROJECT_ROOT/lib/core/common.sh" source "$PROJECT_ROOT/lib/check/all.sh" -softwareupdate() { - echo "* Label: AppOne" - echo "* Label: AppTwo" - return 0 -} - -start_inline_spinner(){ :; } -stop_inline_spinner(){ :; } - check_appstore_updates +echo "COUNT=$APPSTORE_UPDATE_COUNT" EOF [ "$status" -eq 0 ] - [[ "$output" == *"App Store"* ]] - [[ "$output" == *"2 apps"* ]] + [[ "$output" == *"COUNT=0"* ]] } @test "check_macos_update warns when update available" {