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
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/ward!1133
No description provided.