@@ -34,8 +34,8 @@ private func makeDefaultHTTPClient(
34
34
35
35
final class AsyncAwaitEndToEndTests : XCTestCase {
36
36
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 }
39
39
XCTAsyncTest {
40
40
let bin = HTTPBin ( . http2( compress: false ) )
41
41
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -57,8 +57,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
57
57
}
58
58
59
59
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 }
62
62
XCTAsyncTest {
63
63
let bin = HTTPBin ( . http2( compress: false ) )
64
64
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -80,8 +80,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
80
80
}
81
81
82
82
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 }
85
85
XCTAsyncTest {
86
86
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
87
87
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -105,8 +105,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
105
105
}
106
106
107
107
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 }
110
110
XCTAsyncTest {
111
111
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
112
112
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -130,8 +130,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
130
130
}
131
131
132
132
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 }
135
135
XCTAsyncTest {
136
136
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
137
137
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -155,8 +155,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
155
155
}
156
156
157
157
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 }
160
160
XCTAsyncTest {
161
161
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
162
162
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -180,8 +180,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
180
180
}
181
181
182
182
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 }
185
185
XCTAsyncTest {
186
186
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
187
187
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -209,8 +209,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
209
209
}
210
210
211
211
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 }
214
214
XCTAsyncTest {
215
215
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
216
216
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -234,8 +234,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
234
234
}
235
235
236
236
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 }
239
239
XCTAsyncTest {
240
240
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
241
241
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -276,8 +276,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
276
276
}
277
277
278
278
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 }
281
281
XCTAsyncTest {
282
282
let bin = HTTPBin ( . http2( compress: false ) ) { _ in HTTPEchoHandler ( ) }
283
283
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -319,8 +319,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
319
319
}
320
320
321
321
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 }
324
324
XCTAsyncTest ( timeout: 5 ) {
325
325
let bin = HTTPBin ( . http2( compress: false ) )
326
326
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -344,8 +344,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
344
344
}
345
345
346
346
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 }
349
349
XCTAsyncTest ( timeout: 5 ) {
350
350
let bin = HTTPBin ( . http2( compress: false ) )
351
351
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -365,8 +365,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
365
365
}
366
366
367
367
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 }
370
370
XCTAsyncTest ( timeout: 5 ) {
371
371
let bin = HTTPBin ( . http2( compress: false ) )
372
372
defer { XCTAssertNoThrow ( try bin. shutdown ( ) ) }
@@ -386,8 +386,8 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
386
386
}
387
387
388
388
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 }
391
391
XCTAsyncTest ( timeout: 5 ) {
392
392
let client = makeDefaultHTTPClient ( )
393
393
defer { XCTAssertNoThrow ( try client. syncShutdown ( ) ) }
@@ -402,7 +402,7 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
402
402
}
403
403
}
404
404
405
- #if compiler(>=5.5) && canImport(_Concurrency)
405
+ #if compiler(>=5.5.2 ) && canImport(_Concurrency)
406
406
extension AsyncSequence where Element == ByteBuffer {
407
407
func collect( ) async rethrows -> ByteBuffer {
408
408
try await self . reduce ( into: ByteBuffer ( ) ) { accumulatingBuffer, nextBuffer in
0 commit comments