From 03aaf1f3aa69f915ed11cea0dde16c458cfbb91e Mon Sep 17 00:00:00 2001 From: Maxim Dozhdev Date: Fri, 21 Aug 2026 18:04:56 +0200 Subject: [PATCH] test: allow the e2e backend host to be set at launch e2eLocalHost read only from Info.plist, which is written when the app is compiled. A run against a stack on another machine does not know the address until it has provisioned one, after the build. Rebuilding per run is not viable on macOS. configValue is the existing helper directly above, resolving env var, then launch argument, then Info.plist. Falling through to the same lookup means builds that set nothing are unaffected; it only adds a way to override at launch, which is how the test runner supplies the address. Reachable only from isE2E, which requires the E2E_BUILD compilation flag that no project file sets and only e2e build commands pass, so a release build never compiles that branch. Co-Authored-By: Claude Opus 5 --- Bitkit/Constants/Env.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bitkit/Constants/Env.swift b/Bitkit/Constants/Env.swift index 9c90c109f..a79c70680 100644 --- a/Bitkit/Constants/Env.swift +++ b/Bitkit/Constants/Env.swift @@ -76,7 +76,7 @@ enum Env { } private static var e2eLocalHost: String { - infoPlistValue("E2E_LOCAL_HOST") ?? "127.0.0.1" + configValue("E2E_LOCAL_HOST") ?? "127.0.0.1" } private static var e2eHomegateUrl: String {