@@ -36,7 +36,7 @@ class TestURLSession : LoopbackServerTest {
36
36
( " test_verifyHttpAdditionalHeaders " , test_verifyHttpAdditionalHeaders) ,
37
37
( " test_timeoutInterval " , test_timeoutInterval) ,
38
38
( " test_httpRedirection " , test_httpRedirection) ,
39
- ( " test_httpRedirectionTimeout " , test_httpRedirectionTimeout) ,
39
+ // ("test_httpRedirectionTimeout", test_httpRedirectionTimeout), /* temporarily disabled (https://bugs.swift.org/browse/SR-5751) */
40
40
( " test_http0_9SimpleResponses " , test_http0_9SimpleResponses) ,
41
41
( " test_outOfRangeButCorrectlyFormattedHTTPCode " , test_outOfRangeButCorrectlyFormattedHTTPCode) ,
42
42
( " test_missingContentLengthButStillABody " , test_missingContentLengthButStillABody) ,
@@ -313,6 +313,8 @@ class TestURLSession : LoopbackServerTest {
313
313
waitForExpectations ( timeout: 12 )
314
314
}
315
315
316
+ /*
317
+ // temporarily disabled (https://bugs.swift.org/browse/SR-5751)
316
318
func test_httpRedirectionTimeout() {
317
319
let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/UnitedStates"
318
320
var req = URLRequest(url: URL(string: urlString)!)
@@ -325,11 +327,14 @@ class TestURLSession : LoopbackServerTest {
325
327
if let e = error as? URLError {
326
328
XCTAssertEqual(e.code, .timedOut, "Unexpected error code")
327
329
return
330
+ } else {
331
+ XCTFail("test unexpectedly succeeded (response=\(response.debugDescription))")
328
332
}
329
333
}
330
334
task.resume()
331
335
waitForExpectations(timeout: 12)
332
336
}
337
+ */
333
338
334
339
func test_http0_9SimpleResponses( ) {
335
340
for brokenCity in [ " Pompeii " , " Sodom " ] {
0 commit comments