diff --git a/Package@swift-6.0.swift b/Package@swift-6.0.swift index 837b5b0..2ea5ac8 100644 --- a/Package@swift-6.0.swift +++ b/Package@swift-6.0.swift @@ -28,11 +28,15 @@ let package = Package( name: "AsyncSequenceReader", dependencies: [], swiftSettings: [ - .swiftLanguageVersion(.v6), + .swiftLanguageMode(.v6), ] ), .testTarget( name: "AsyncSequenceReaderTests", - dependencies: ["AsyncSequenceReader"]), + dependencies: ["AsyncSequenceReader"], + swiftSettings: [ + .swiftLanguageMode(.v6), + ] + ), ] ) diff --git a/Tests/AsyncSequenceReaderTests/AsyncBufferedIteratorTests.swift b/Tests/AsyncSequenceReaderTests/AsyncBufferedIteratorTests.swift index 8e815d8..3e20a7c 100644 --- a/Tests/AsyncSequenceReaderTests/AsyncBufferedIteratorTests.swift +++ b/Tests/AsyncSequenceReaderTests/AsyncBufferedIteratorTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import AsyncSequenceReader -final class AsyncBufferedIteratorTests: XCTestCase { +final class AsyncBufferedIteratorTests: XCTestCase, @unchecked Sendable { func testBufferIteratorFromStream() async throws { let testStream = AsyncStream { continuation in for value in 0..<10 { diff --git a/Tests/AsyncSequenceReaderTests/AsyncIteratorMapSequenceTests.swift b/Tests/AsyncSequenceReaderTests/AsyncIteratorMapSequenceTests.swift index d521bf1..b2d8641 100644 --- a/Tests/AsyncSequenceReaderTests/AsyncIteratorMapSequenceTests.swift +++ b/Tests/AsyncSequenceReaderTests/AsyncIteratorMapSequenceTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import AsyncSequenceReader -final class AsyncIteratorMapSequenceTests: XCTestCase { +final class AsyncIteratorMapSequenceTests: XCTestCase, @unchecked Sendable { func testIteratorMapFromStream() async throws { let testStream = AsyncStream { continuation in let data = ["2", "Hello,", "World!", "4", "My", "name", "is", "Dimitri.", "0", "1", "Bye!"] diff --git a/Tests/AsyncSequenceReaderTests/AsyncReadUpToCountSequenceTests.swift b/Tests/AsyncSequenceReaderTests/AsyncReadUpToCountSequenceTests.swift index b4490d9..7d42a29 100644 --- a/Tests/AsyncSequenceReaderTests/AsyncReadUpToCountSequenceTests.swift +++ b/Tests/AsyncSequenceReaderTests/AsyncReadUpToCountSequenceTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import AsyncSequenceReader -final class AsyncReadUpToCountSequenceTests: XCTestCase { +final class AsyncReadUpToCountSequenceTests: XCTestCase, @unchecked Sendable { func testIteratorMapFromStream() async throws { struct LocalError: Error {} diff --git a/Tests/AsyncSequenceReaderTests/AsyncReadUpToElementsSequenceTests.swift b/Tests/AsyncSequenceReaderTests/AsyncReadUpToElementsSequenceTests.swift index 88e0a9d..fcac256 100644 --- a/Tests/AsyncSequenceReaderTests/AsyncReadUpToElementsSequenceTests.swift +++ b/Tests/AsyncSequenceReaderTests/AsyncReadUpToElementsSequenceTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import AsyncSequenceReader -final class AsyncReadUpToElementsSequenceTests: XCTestCase { +final class AsyncReadUpToElementsSequenceTests: XCTestCase, @unchecked Sendable { func testIteratorMapUpToIncludingSequence() async throws { struct LocalError: Error {} diff --git a/Tests/AsyncSequenceReaderTests/AsyncSequenceReaderTests.swift b/Tests/AsyncSequenceReaderTests/AsyncSequenceReaderTests.swift index da4c839..2d90ae4 100644 --- a/Tests/AsyncSequenceReaderTests/AsyncSequenceReaderTests.swift +++ b/Tests/AsyncSequenceReaderTests/AsyncSequenceReaderTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import AsyncSequenceReader -final class AsyncSequenceReaderTests: XCTestCase { +final class AsyncSequenceReaderTests: XCTestCase, @unchecked Sendable { // MARK: - Test Manual Iteration func testReadSequenceFromStream() async throws {