Skip to content

Commit dac19df

Browse files
committed
Fix tests for macOS
1 parent 83d67fb commit dac19df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,9 +1094,11 @@ class HTTPClientTests: XCTestCase {
10941094
}
10951095

10961096
func testStressGetClose() throws {
1097-
guard !(self.clientGroup is NIOTSEventLoopGroup) else {
1098-
XCTFail("Disabled test as it crashes");
1099-
return
1097+
if #available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *) {
1098+
guard !(self.clientGroup is NIOTSEventLoopGroup) else {
1099+
XCTFail("Disabled test as it crashes");
1100+
return
1101+
}
11001102
}
11011103
let httpBin = HTTPBin(ssl: false)
11021104
let httpClient = HTTPClient(eventLoopGroupProvider: .shared(self.clientGroup),

0 commit comments

Comments
 (0)