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