@@ -111,7 +111,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
111111 }
112112 }
113113 }
114+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
115+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
116+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
114117 wait ( for: [ expectation1] , timeout: 20.0 )
118+ #endif
115119 }
116120
117121 func testErrorHTTPReturns400NoDataFromServer( ) async throws {
@@ -138,7 +142,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
138142 expectation1. fulfill ( )
139143 }
140144 }
145+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
146+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
147+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
141148 wait ( for: [ expectation1] , timeout: 20.0 )
149+ #endif
142150 }
143151
144152 func testErrorHTTP429JSONInterval( ) async throws {
@@ -193,7 +201,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
193201 }
194202 }
195203 }
204+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
205+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
206+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
196207 wait ( for: [ expectation1] , timeout: 20.0 )
208+ #endif
197209 }
198210
199211 func testErrorHTTP429JSONDate( ) async throws {
@@ -256,7 +268,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
256268 }
257269 }
258270 }
271+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
272+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
273+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
259274 wait ( for: [ expectation1] , timeout: 20.0 )
275+ #endif
260276 }
261277
262278 func testErrorHTTP429JSONNoHeader( ) async throws {
@@ -308,7 +324,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
308324 }
309325 }
310326 }
327+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
328+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
329+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
311330 wait ( for: [ expectation1] , timeout: 20.0 )
331+ #endif
312332 }
313333
314334 func testErrorHTTP503JSONInterval( ) async throws {
@@ -363,7 +383,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
363383 }
364384 }
365385 }
386+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
387+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
388+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
366389 wait ( for: [ expectation1] , timeout: 20.0 )
390+ #endif
367391 }
368392
369393 func testErrorHTTP503JSONDate( ) async throws {
@@ -426,7 +450,11 @@ class APICommandMultipleAttemptsTests: XCTestCase {
426450 }
427451 }
428452 }
453+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
454+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
455+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
429456 wait ( for: [ expectation1] , timeout: 20.0 )
457+ #endif
430458 }
431459
432460 func testErrorHTTP503JSONNoHeader( ) async throws {
@@ -478,6 +506,10 @@ class APICommandMultipleAttemptsTests: XCTestCase {
478506 }
479507 }
480508 }
509+ #if compiler(>=5.8.0) && !os(Linux) && !os(Android) && !os(Windows)
510+ await fulfillment ( of: [ expectation1] , timeout: 20.0 )
511+ #elseif compiler(<5.8.0) && !os(iOS) && !os(tvOS)
481512 wait ( for: [ expectation1] , timeout: 20.0 )
513+ #endif
482514 }
483515}
0 commit comments