Skip to content

Tests restore the appearance setting they change - #1136

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/appearance-test-isolation
Nov 10, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/appearance-test-isolation

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

What and why

Problem. A full swift test run sometimes failed in ShellInstallTests with "left appearance in the shared test defaults".
Cause. ConsoleDarkInLightTests (from #1097) wrote the appearance key to the standard defaults. The shared-defaults guard then failed whichever test ran next.
Change. The test uses an isolated suite through defaultAppStorage. A new guard test fails if a test writes that key to the standard defaults again.

Follows #1097.

Checked

  • Tests: left to CI.
  • Test for a fix: AppearanceKeyGuardTests.

ConsoleDarkInLightTests wrote the appearance key to the shared defaults. It now uses an isolated suite through defaultAppStorage. A guard test fails if a test writes that key to the standard defaults again.
@v0lumehi v0lumehi added bug Something isn't working launcher The NX2Apple launcher app labels Nov 10, 2026
@v0lumehi
v0lumehi merged commit 65165ba into main Nov 10, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working launcher The NX2Apple launcher app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant