From 17ee5d6717d04b0f89855ba59ba1bd1684483013 Mon Sep 17 00:00:00 2001 From: Gronod Date: Sat, 12 Sep 2026 09:06:45 +0100 Subject: [PATCH] test(m9): replace MainActor.assertIsolated for Swift 5.7 (#115) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- Tests/ICCeryCoreTests/ProcessRunSupportTests.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/ICCeryCoreTests/ProcessRunSupportTests.swift b/Tests/ICCeryCoreTests/ProcessRunSupportTests.swift index a1edb9b..357f317 100644 --- a/Tests/ICCeryCoreTests/ProcessRunSupportTests.swift +++ b/Tests/ICCeryCoreTests/ProcessRunSupportTests.swift @@ -21,7 +21,9 @@ final class ProcessRunSupportTests: XCTestCase { setRunning: { running.append($0) }, resetLog: { resets += 1 }, onLog: { batch in - MainActor.assertIsolated() + // MainActor.assertIsolated() needs Swift 5.9; the runner is + // on Xcode 14.2 (Swift 5.7) (#115). + XCTAssertTrue(Thread.isMainThread) received.append(contentsOf: batch) } ) { onLog in -- 2.39.5