From 97a4ef7cd3fcbd1925d9bdb5c2c42b5344d81825 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 6 Mar 2026 10:12:28 +0000 Subject: [PATCH] fix: health-checks.ts reads deployments-local.json directly, bypassing all env var overrides (#412) Co-Authored-By: Claude Sonnet 4.6 --- tests/setup/health-checks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/setup/health-checks.ts b/tests/setup/health-checks.ts index 3f1febb..22a6067 100644 --- a/tests/setup/health-checks.ts +++ b/tests/setup/health-checks.ts @@ -59,8 +59,8 @@ export async function checkRpcFunctional(rpcUrl: string, kraikenAddress?: string } // Step 2: Resolve the Kraiken address for the eth_call probe. - // Use the address supplied by the caller; fall back to deployments-local.json. - let resolvedKraikenAddress = kraikenAddress; + // Priority: caller-supplied address → STACK_KRAIKEN_ADDRESS env var → deployments-local.json. + let resolvedKraikenAddress = kraikenAddress ?? process.env.STACK_KRAIKEN_ADDRESS; if (!resolvedKraikenAddress) { const deploymentsPath = resolve(repoRoot, 'onchain', 'deployments-local.json');