File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Tests/AWSLambdaRuntimeTests Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15+ #if LocalServerSupport
16+
1517import NIOCore
1618import 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
You can’t perform that action at this time.
0 commit comments