test: isolate the suite from the operator live config env #1133

Merged
coilysiren merged 1 commit from fix/test-env-isolation into main 2026-07-12 06:44:40 +00:00
Owner

TestMain clears WARD_CONFIG_REF / WARD_CONFIG_TTL / WARD_TARGET_* and points the user cache at a throwaway dir, so unit tests stop gitsyncing the real config bundle mid-suite. Closes #1128.

TestMain clears WARD_CONFIG_REF / WARD_CONFIG_TTL / WARD_TARGET_* and points the user cache at a throwaway dir, so unit tests stop gitsyncing the real config bundle mid-suite. Closes #1128.
test: isolate the suite from the operator's live config env (closes #1128)
All checks were successful
test / test (pull_request) Successful in 41s
e8f5792ee1
TestMain now clears WARD_CONFIG_REF / WARD_CONFIG_TTL / WARD_TARGET_* and
points the user cache dir at a throwaway, so test binaries stop
gitsyncing the real config bundle mid-suite (network fetches, credential
prompts, cache writes from what should be hermetic units). Tests that
need these variables set them explicitly with t.Setenv.

closes #1128

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016Cym37PsLtA61parAQyeAw
Sign in to join this conversation.
No description provided.