From 34cc32fa41f50b90566d97157482e23ad1745509 Mon Sep 17 00:00:00 2001 From: Sebastien Tardif Date: Thu, 16 Jul 2026 08:40:56 -0400 Subject: [PATCH] fix(test): mock download/validate for Debian NodeSource install path install_node now calls validate_downloaded_script after the NodeSource download step. The Debian pacman-ignore harness did not mock those helpers, so empty mktemp files failed closed and status was 1. Signed-off-by: Sebastien Tardif --- test/scripts/install-sh.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/scripts/install-sh.test.ts b/test/scripts/install-sh.test.ts index ee71b2b654d6..2ab3e50225ca 100644 --- a/test/scripts/install-sh.test.ts +++ b/test/scripts/install-sh.test.ts @@ -259,6 +259,8 @@ NODE is_alpine_linux() { return 1; } pacman() { printf 'pacman:%s\\n' "$*"; } apt-get() { :; } + download_file() { :; } + validate_downloaded_script() { return 0; } ui_info() { printf 'info:%s\\n' "$*"; } ui_success() { :; } run_required_step() { printf 'step:%s|%s\\n' "$1" "\${*:2}"; }