Skip to content

Commit 762496a

Browse files
vkuttypCopilot
andcommitted
fix: resolve Swift 6 Sendable and Swift 5.10 compiler crash issues
- Add @unchecked Sendable to MySQLPoolTests so implicit self captures in @sendable closures are accepted in Swift 6 strict concurrency mode - Replace Swift 5.10 with 5.9 in CI matrix: Swift 5.10 compiler crashes on NIO 2.95.0 Sendable availability warnings (compiler bug, not our code) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7aa13fb commit 762496a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
os: [macos-15, ubuntu-24.04]
39-
swift: ["5.10", "6.0"]
39+
swift: ["5.9", "6.0"]
4040
exclude:
4141
# macOS 15 ships with Swift 6 (Xcode 16); skip redundant 5.10 run
4242
- os: macos-15

Tests/MySQLNioTests/MySQLIntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ final class MySQLQueryMultiTests: XCTestCase {
12861286

12871287
// MARK: - Connection Pool Tests
12881288

1289-
final class MySQLPoolTests: XCTestCase {
1289+
final class MySQLPoolTests: XCTestCase, @unchecked Sendable {
12901290

12911291
override func setUp() async throws { try skipUnlessMySQL() }
12921292

0 commit comments

Comments
 (0)