fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user