From 90d55b76f609228806cf4e677690f29ddf49dcc1 Mon Sep 17 00:00:00 2001 From: Jonathan Flat Date: Thu, 1 Aug 2024 17:05:10 -0700 Subject: [PATCH] Disable test_connectTimeout --- Tests/Foundation/TestURLSession.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/Foundation/TestURLSession.swift b/Tests/Foundation/TestURLSession.swift index 465683a00a..2218c3ddf0 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 {