Skip to content

Serialize the AppStorage test suite#71

Merged
colemancda merged 1 commit into
masterfrom
fix/appstorage-test-serialization
Jul 24, 2026
Merged

Serialize the AppStorage test suite#71
colemancda merged 1 commit into
masterfrom
fix/appstorage-test-serialization

Conversation

@colemancda

Copy link
Copy Markdown
Member

The AppStorage tests each reassign the process-global AppStorageStore.backend, so under Swift Testing's parallel execution one test could swap the backend mid-run and another would see nil reads (e.g. in "Each supported type round-trips under its own key").

Mark the suite .serialized so its four tests run one at a time; no other suite touches the backend, so the rest of the run stays fully parallel.

Verified with 5 consecutive filtered runs and 3 consecutive full swift test runs, all passing.

@colemancda
colemancda merged commit e9412e2 into master Jul 24, 2026
12 checks passed
@colemancda
colemancda deleted the fix/appstorage-test-serialization branch July 24, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant