From 7745b5c9f5c4cb5ecf8e296d7b4c0aae779147d7 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Mon, 17 Feb 2025 15:09:25 +0000 Subject: [PATCH] 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 --- Tests/AsyncHTTPClientTests/HTTPClientTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/AsyncHTTPClientTests/HTTPClientTests.swift b/Tests/AsyncHTTPClientTests/HTTPClientTests.swift index 546d1c3f4..93c057e36 100644 --- a/Tests/AsyncHTTPClientTests/HTTPClientTests.swift +++ b/Tests/AsyncHTTPClientTests/HTTPClientTests.swift @@ -46,7 +46,7 @@ final class HTTPClientTests: XCTestCaseHTTPClientTestsBaseClass { let request3 = try Request(url: "unix:///tmp/file") XCTAssertEqual(request3.host, "") - #if os(Linux) && compiler(>=6.0) + #if os(Linux) && compiler(>=6.0) && compiler(<6.2) XCTAssertEqual(request3.url.host, "") #else XCTAssertNil(request3.url.host)