@@ -34,8 +34,8 @@ private func makeDefaultHTTPClient(
3434
3535final class AsyncAwaitEndToEndTests : XCTestCase {
3636 func testSimpleGet( ) {
37- #if compiler(>=5.5) && canImport(_Concurrency)
38- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
37+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
38+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
3939 XCTAsyncTest {
4040 let bin = HTTPBin ( . http2( compress: false ) )
4141 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -57,8 +57,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
5757 }
5858
5959 func testSimplePost( ) {
60- #if compiler(>=5.5) && canImport(_Concurrency)
61- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
60+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
61+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
6262 XCTAsyncTest {
6363 let bin = HTTPBin ( . http2( compress: false ) )
6464 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -80,8 +80,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
8080 }
8181
8282 func testPostWithByteBuffer( ) {
83- #if compiler(>=5.5) && canImport(_Concurrency)
84- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
83+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
84+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
8585 XCTAsyncTest {
8686 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
8787 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -105,8 +105,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
105105 }
106106
107107 func testPostWithSequenceOfUInt8( ) {
108- #if compiler(>=5.5) && canImport(_Concurrency)
109- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
108+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
109+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
110110 XCTAsyncTest {
111111 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
112112 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -130,8 +130,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
130130 }
131131
132132 func testPostWithCollectionOfUInt8( ) {
133- #if compiler(>=5.5) && canImport(_Concurrency)
134- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
133+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
134+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
135135 XCTAsyncTest {
136136 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
137137 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -155,8 +155,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
155155 }
156156
157157 func testPostWithRandomAccessCollectionOfUInt8( ) {
158- #if compiler(>=5.5) && canImport(_Concurrency)
159- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
158+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
159+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
160160 XCTAsyncTest {
161161 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
162162 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -180,8 +180,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
180180 }
181181
182182 func testPostWithAsyncSequenceOfByteBuffers( ) {
183- #if compiler(>=5.5) && canImport(_Concurrency)
184- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
183+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
184+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
185185 XCTAsyncTest {
186186 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
187187 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -209,8 +209,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
209209 }
210210
211211 func testPostWithAsyncSequenceOfUInt8( ) {
212- #if compiler(>=5.5) && canImport(_Concurrency)
213- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
212+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
213+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
214214 XCTAsyncTest {
215215 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
216216 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -234,8 +234,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
234234 }
235235
236236 func testPostWithFragmentedAsyncSequenceOfByteBuffers( ) {
237- #if compiler(>=5.5) && canImport(_Concurrency)
238- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
237+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
238+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
239239 XCTAsyncTest {
240240 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
241241 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -276,8 +276,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
276276 }
277277
278278 func testPostWithFragmentedAsyncSequenceOfLargeByteBuffers( ) {
279- #if compiler(>=5.5) && canImport(_Concurrency)
280- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
279+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
280+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
281281 XCTAsyncTest {
282282 let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
283283 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -319,8 +319,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
319319 }
320320
321321 func testCanceling( ) {
322- #if compiler(>=5.5) && canImport(_Concurrency)
323- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
322+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
323+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
324324 XCTAsyncTest ( timeout: 5 ) {
325325 let bin = HTTPBin ( . http2( compress: false ) )
326326 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -344,8 +344,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
344344 }
345345
346346 func testDeadline( ) {
347- #if compiler(>=5.5) && canImport(_Concurrency)
348- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
347+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
348+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
349349 XCTAsyncTest ( timeout: 5 ) {
350350 let bin = HTTPBin ( . http2( compress: false ) )
351351 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -365,8 +365,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
365365 }
366366
367367 func testImmediateDeadline( ) {
368- #if compiler(>=5.5) && canImport(_Concurrency)
369- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
368+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
369+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
370370 XCTAsyncTest ( timeout: 5 ) {
371371 let bin = HTTPBin ( . http2( compress: false ) )
372372 defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -386,8 +386,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
386386 }
387387
388388 func testInvalidURL( ) {
389- #if compiler(>=5.5) && canImport(_Concurrency)
390- guard #available( macOS 12 . 0 , iOS 15 . 0 , watchOS 8 . 0 , tvOS 15 . 0 , * ) else { return }
389+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
390+ guard #available( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * ) else { return }
391391 XCTAsyncTest ( timeout: 5 ) {
392392 let client = makeDefaultHTTPClient ( )
393393 defer { XCTAssertNoThrow ( try client. syncShutdown ( ) ) }
@@ -402,7 +402,7 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
402402 }
403403}
404404
405- #if compiler(>=5.5) && canImport(_Concurrency)
405+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
406406extension AsyncSequence where Element == ByteBuffer {
407407 func collect( ) async rethrows -> ByteBuffer {
408408 try await self . reduce ( into: ByteBuffer ( ) ) { accumulatingBuffer, nextBuffer in
0 commit comments