From 3f8c9e1456cebf2ad5798b35ca9687fb3fd618d9 Mon Sep 17 00:00:00 2001 From: kutesir Date: Mon, 13 Jul 2026 01:35:26 +0300 Subject: [PATCH] test: mark StreakLogicTests @MainActor to fix Swift 6 compile error (KC-72) The CI runner was broken all session (registered but never actually polled for jobs - separate infra bug, fixed alongside this). First real CI run surfaced a genuine, pre-existing compile error unrelated to tonight's work: StreakLogicTests called @MainActor-isolated WorkoutViewModel/TaskViewModel static methods from a non-isolated test class. RecurrenceTests.swift in the same target already uses the correct @MainActor class annotation - StreakLogicTests was just missing it. Verified locally: full suite now passes, 78/78 tests, 0 failures, on a real simulator (iPhone 17 Pro) - not just self-review. Co-Authored-By: Claude Opus 4.8 --- KisaniCalTests/StreakLogicTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/KisaniCalTests/StreakLogicTests.swift b/KisaniCalTests/StreakLogicTests.swift index 78d4c0f..a7ad7c2 100644 --- a/KisaniCalTests/StreakLogicTests.swift +++ b/KisaniCalTests/StreakLogicTests.swift @@ -1,6 +1,7 @@ import XCTest @testable import KisaniCal +@MainActor final class StreakLogicTests: XCTestCase { private let cal = Calendar.current