fixes for Swift 6 and threading concerns

This commit is contained in:
2026-06-02 12:09:44 -07:00
parent 2fa4bfd45e
commit 6d3a0930a1
327 changed files with 1596 additions and 199 deletions
@@ -9,6 +9,7 @@ import Testing
// MARK: - CoreAudioDriverOptions defaults
@MainActor
@Suite("CoreAudioDriverOptions") struct CoreAudioDriverOptionsTests {
@Test func defaultMatchDeviceSampleRateIsFalse() {
let opts: CoreAudioDriverOptions = CoreAudioDriverOptions()
@@ -23,6 +24,7 @@ import Testing
// MARK: - Sample rate validation (offline, no hardware required)
@MainActor
@Suite("CoreAudioDriver sample rate validation") struct CoreAudioSampleRateValidationTests {
@Test func doesNotThrowWhenRatesMatch() throws {
let opts: CoreAudioDriverOptions = CoreAudioDriverOptions()
@@ -73,6 +75,7 @@ import Testing
// MARK: - deviceSampleRate property
@MainActor
@Suite("CoreAudioDriver deviceSampleRate") struct CoreAudioDeviceSampleRateTests {
@Test func deviceSampleRateNilBeforeSetup() {
let driver: CoreAudioDriver = CoreAudioDriver()
@@ -82,6 +85,7 @@ import Testing
// MARK: - Lifecycle (no hardware required)
@MainActor
@Suite("CoreAudioDriver lifecycle") struct CoreAudioDriverLifecycleTests {
@Test func stopBeforeSetupIsNoop() {
let driver: CoreAudioDriver = CoreAudioDriver()