From cf14be35421d496c9ff10b70f06fee6006d7d610 Mon Sep 17 00:00:00 2001 From: Anthony Latsis Date: Tue, 14 Oct 2025 19:40:34 +0100 Subject: [PATCH] [test] Disable test only for Linux to unblock CI --- Tests/Foundation/TestURLSession.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/Foundation/TestURLSession.swift b/Tests/Foundation/TestURLSession.swift index 0c530522a0..a75489ce4e 100644 --- a/Tests/Foundation/TestURLSession.swift +++ b/Tests/Foundation/TestURLSession.swift @@ -31,9 +31,10 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable { } } +// rdar://162419667 +// Fails on Amazon Linux 2 and UBI 9 (test_dataTaskWithURLRequest returned an unexpected result) +#if !os(Linux) func test_dataTaskWithAcceptEncoding() async { - throw XCTSkip("rdar://162419667") - let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/accept-encoding" let url = URL(string: urlString)! let d = DataTask(with: expectation(description: "GET \(urlString): with a delegate")) @@ -44,6 +45,7 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable { XCTAssert(supportedEncodings.contains("br"), "test_dataTaskWithURLRequest returned an unexpected result") } } +#endif func test_dataTaskWithURLCompletionHandler() async { //shared session