fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -10,6 +10,7 @@ import Testing
|
||||
|
||||
// MARK: - OscSin.Control Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("OscSin.Control")
|
||||
struct OscSinControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -134,6 +135,7 @@ struct OscSinControlTests {
|
||||
|
||||
// MARK: - OscTableControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("OscTableControl")
|
||||
struct OscTableControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -217,6 +219,7 @@ struct OscTableControlTests {
|
||||
|
||||
// MARK: - ImpulseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ImpulseControl")
|
||||
struct ImpulseControlTests {
|
||||
// Use blockSize == sampleRate so 1 Hz fires exactly once per block.
|
||||
@@ -332,6 +335,7 @@ struct ImpulseControlTests {
|
||||
|
||||
// MARK: - WhiteNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("WhiteNoiseControl")
|
||||
struct WhiteNoiseControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -406,6 +410,7 @@ struct WhiteNoiseControlTests {
|
||||
|
||||
// MARK: - LFStepNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LFStepNoiseControl")
|
||||
struct LFStepNoiseControlTests {
|
||||
// blockSize == sampleRate so 1 Hz fires exactly once per block.
|
||||
@@ -522,6 +527,7 @@ struct LFStepNoiseControlTests {
|
||||
|
||||
// MARK: - LFLineNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LFLineNoiseControl")
|
||||
struct LFLineNoiseControlTests {
|
||||
let blockSize: Int = 100
|
||||
@@ -648,6 +654,7 @@ private final class CountingControl: GeneratorBase, ControlGenerator {
|
||||
|
||||
// MARK: - Sub-block control tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ControlGenerator sub-block")
|
||||
struct ControlGeneratorSubBlockTests {
|
||||
|
||||
@@ -826,6 +833,7 @@ struct ControlGeneratorSubBlockTests {
|
||||
|
||||
// MARK: - PinkNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("PinkNoiseControl")
|
||||
struct PinkNoiseControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -901,6 +909,7 @@ struct PinkNoiseControlTests {
|
||||
|
||||
// MARK: - BrownNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("BrownNoiseControl")
|
||||
struct BrownNoiseControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -975,6 +984,7 @@ struct BrownNoiseControlTests {
|
||||
|
||||
// MARK: - GrayNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("GrayNoiseControl")
|
||||
struct GrayNoiseControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -1049,6 +1059,7 @@ struct GrayNoiseControlTests {
|
||||
|
||||
// MARK: - ClipNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ClipNoiseControl")
|
||||
struct ClipNoiseControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -1124,6 +1135,7 @@ struct ClipNoiseControlTests {
|
||||
|
||||
// MARK: - DustControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("DustControl")
|
||||
struct DustControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -1200,6 +1212,7 @@ struct DustControlTests {
|
||||
|
||||
// MARK: - Dust2Control Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("Dust2Control")
|
||||
struct Dust2ControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -1276,6 +1289,7 @@ struct Dust2ControlTests {
|
||||
|
||||
// MARK: - CrackleControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("CrackleControl")
|
||||
struct CrackleControlTests {
|
||||
let blockSize: Int = 64
|
||||
@@ -1356,6 +1370,7 @@ struct CrackleControlTests {
|
||||
|
||||
// MARK: - LFCurveNoiseControl Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LFCurveNoiseControl")
|
||||
struct LFCurveNoiseControlTests {
|
||||
let blockSize: Int = 100
|
||||
|
||||
Reference in New Issue
Block a user