test(m9): replace MainActor.assertIsolated for Swift 5.7 (#115) #116

Merged
gronod merged 1 commits from feat/115-assertisolated-swift57 into milestone/m9-monterey 2026-09-12 09:07:08 +01:00
Owner

Fixes #115.

Run 31985: the app target now compiles on Swift 5.7; the ICCeryCoreTests bundle failed on MainActor.assertIsolated() (Swift 5.9+, unavailable in Xcode 14.2).

Replaced with XCTAssertTrue(Thread.isMainThread) — checks the same contract (the coalesced onLog sink hops back to the main actor) on all toolchains. Only usage in the tree.

Fixes #115. Run 31985: the app target now compiles on Swift 5.7; the `ICCeryCoreTests` bundle failed on `MainActor.assertIsolated()` (Swift 5.9+, unavailable in Xcode 14.2). Replaced with `XCTAssertTrue(Thread.isMainThread)` — checks the same contract (the coalesced `onLog` sink hops back to the main actor) on all toolchains. Only usage in the tree.
gronod added the
Priority
High
2
Project/ICCery-v2Bug/DevOps
labels 2026-09-12 09:06:56 +01:00
gronod added 1 commit 2026-09-12 09:06:58 +01:00
MainActor.assertIsolated() requires Swift 5.9 (Xcode 15); the macOS 12
CI runner compiles the test bundle with Swift 5.7 and failed run 31985.
Assert Thread.isMainThread instead — it checks the same contract (the
coalesced log sink hops back to the main actor).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gronod merged commit 707455dcfb into milestone/m9-monterey 2026-09-12 09:07:08 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#116