Skip to content

Commit 7745b5c

Browse files
committed
Work around Foundation revert
Motivation Foundation has reverted several of the changes of behaviour in the URL type, leaving 6.0 and 6.1 with a different behaviour on non-Apple platforms than all other versions. We should tolerate that. Modifications Update the tests to understand the difference. Result Tests pass
1 parent b645ad4 commit 7745b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class HTTPClientTests: XCTestCaseHTTPClientTestsBaseClass {
4646

4747
let request3 = try Request(url: "unix:///tmp/file")
4848
XCTAssertEqual(request3.host, "")
49-
#if os(Linux) && compiler(>=6.0)
49+
#if os(Linux) && compiler(>=6.0) && compiler(<6.2)
5050
XCTAssertEqual(request3.url.host, "")
5151
#else
5252
XCTAssertNil(request3.url.host)

0 commit comments

Comments
 (0)