Skip to content

Commit 18e09c6

Browse files
author
Sebastien Stormacq
committed
skip some tests on Swift 6.0
1 parent 6311b46 commit 18e09c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/AWSLambdaRuntimeTests/PoolTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
#if LocalServerSupport
16+
1517
import NIOCore
1618
import Testing
1719

@@ -160,6 +162,10 @@ struct PoolTests {
160162
#expect(Set(receivedValues).count == producerCount * messagesPerProducer)
161163
}
162164

165+
// in Swift 6.0, the error returned by #expect(throwing:) macro is a tuple ()
166+
// I decided to skip these tests on Swift 6.0
167+
#if swift(>=6.1)
168+
163169
@Test
164170
@available(LambdaSwift 2.0, *)
165171
func testConcurrentNext() async throws {
@@ -509,5 +515,7 @@ struct PoolTests {
509515
let third = try await pool.next(for: "req1")
510516
#expect(String(buffer: third.body!) == "third")
511517
}
518+
#endif //swift >= 6.1
512519

513520
}
521+
#endif // trait

0 commit comments

Comments
 (0)