fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -9,6 +9,7 @@ import Testing
|
||||
|
||||
// MARK: - Init State
|
||||
|
||||
@MainActor
|
||||
@Suite("Init state") struct InitStateTests {
|
||||
@Test func storesBlockSize() {
|
||||
let e: SynthesisEngine = makeTestEngine(blockSize: 256)
|
||||
@@ -46,6 +47,7 @@ import Testing
|
||||
|
||||
// MARK: - Bus Allocation
|
||||
|
||||
@MainActor
|
||||
@Suite("Bus allocation") struct BusAllocationTests {
|
||||
@Test func audioBusCountAfterStart() throws {
|
||||
let e: SynthesisEngine = makeTestEngine(numAudioBuses: 128)
|
||||
@@ -81,6 +83,7 @@ import Testing
|
||||
|
||||
// MARK: - Lifecycle
|
||||
|
||||
@MainActor
|
||||
@Suite("Lifecycle") struct LifecycleTests {
|
||||
@Test func isRunningAfterStart() throws {
|
||||
let e: SynthesisEngine = makeTestEngine()
|
||||
@@ -115,6 +118,7 @@ import Testing
|
||||
|
||||
// MARK: - Bus Index Convention (SC layout)
|
||||
|
||||
@MainActor
|
||||
@Suite("Bus index convention") struct BusConventionTests {
|
||||
@Test func outputBusesAtIndexZero() throws {
|
||||
let e: SynthesisEngine = makeTestEngine(numOutputChannels: 2)
|
||||
@@ -145,6 +149,7 @@ import Testing
|
||||
|
||||
// MARK: - processBlock Cycle Semantics
|
||||
|
||||
@MainActor
|
||||
@Suite("processBlock") struct ProcessBlockTests {
|
||||
@Test func audioBusesZeroedEachBlock() throws {
|
||||
let e: SynthesisEngine = makeTestEngine(blockSize: 4, numOutputChannels: 2,
|
||||
@@ -195,6 +200,7 @@ import Testing
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("pendingQueueDroppedCount") struct PendingQueueDropTests {
|
||||
private final class _Empty: SynthesizerBase { override func build() {} }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user