From dadbddaa0eb998143f18a5c3b510e92041629132 Mon Sep 17 00:00:00 2001 From: Jonathan Flat <50605158+jrflat@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:54:12 -0700 Subject: [PATCH] Disable test_connectTimeout (#5046) --- Tests/Foundation/TestURLSession.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/Foundation/TestURLSession.swift b/Tests/Foundation/TestURLSession.swift index 04226bbfd2..a2739a14d4 100644 --- a/Tests/Foundation/TestURLSession.swift +++ b/Tests/Foundation/TestURLSession.swift @@ -609,6 +609,8 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable { } func test_connectTimeout() async throws { + throw XCTSkip("This test is disabled (flaky when all tests are run together)") + #if false // Reconfigure http server for this specific scenario: // a slow request keeps web server busy, while other // request times out on connection attempt. @@ -646,6 +648,7 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable { Self.stopServer() Self.options = .default Self.startServer() + #endif } func test_repeatedRequestsStress() async throws {