From 0f8f84667d03da48b1f213b2a0bacf367c41e786 Mon Sep 17 00:00:00 2001 From: Timothy Enderson <118444485+Neonsy@users.noreply.github.com> Date: Thu, 16 Jul 2026 22:19:49 +0200 Subject: [PATCH] fix(api): isolate tests from self-hosted environment 1/4 (#1408) --- fluxer_api/src/api/test/Setup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fluxer_api/src/api/test/Setup.ts b/fluxer_api/src/api/test/Setup.ts index 63889ba32..f850f870b 100644 --- a/fluxer_api/src/api/test/Setup.ts +++ b/fluxer_api/src/api/test/Setup.ts @@ -32,6 +32,9 @@ function defaultNatsUrl(): string { } function setDefaultTestEnv(): void { + // API tests use a non-self-hosted baseline; self-hosted scenarios override the loaded config explicitly. + process.env.FLUXER_SELF_HOSTED = 'false'; + const natsUrl = defaultNatsUrl(); const defaults: Record = { FLUXER_ENV: 'test', @@ -89,7 +92,6 @@ function setDefaultTestEnv(): void { FLUXER_SEARCH_API_KEY: 'test', FLUXER_CAPTCHA_ENABLED: 'false', FLUXER_CAPTCHA_PROVIDER: 'none', - FLUXER_SELF_HOSTED: 'false', FLUXER_DISCOVERY_ENABLED: 'true', FLUXER_RELAX_REGISTRATION_RATE_LIMITS: 'true', FLUXER_DISABLE_RATE_LIMITS: 'true',