Commit 29d8733
committed
fix(ci): mark PowerCard.otherWatts nonisolated so tests compile under Swift 6
SwiftUI View is @MainActor-isolated under Swift 6 (Xcode 16.4 on CI), so the
static otherWatts(...) inherited MainActor isolation and could not be called
from the nonisolated XCTest methods in PowerMonitorTests — failing the Test job
with exit code 65. The function is pure arithmetic; nonisolated is correct and
matches PowerMonitor.appendCapped.1 parent ee7704e commit 29d8733
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
0 commit comments