Skip to content

Commit 9d4ac8d

Browse files
authored
Merge pull request #1187 from weissi/jw-timeout-test-not-working
2 parents c0ed4e8 + 3ae57b6 commit 9d4ac8d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

TestFoundation/TestURLSession.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TestURLSession : LoopbackServerTest {
3636
("test_verifyHttpAdditionalHeaders", test_verifyHttpAdditionalHeaders),
3737
("test_timeoutInterval", test_timeoutInterval),
3838
("test_httpRedirection", test_httpRedirection),
39-
("test_httpRedirectionTimeout", test_httpRedirectionTimeout),
39+
//("test_httpRedirectionTimeout", test_httpRedirectionTimeout), /* temporarily disabled (https://bugs.swift.org/browse/SR-5751) */
4040
("test_http0_9SimpleResponses", test_http0_9SimpleResponses),
4141
("test_outOfRangeButCorrectlyFormattedHTTPCode", test_outOfRangeButCorrectlyFormattedHTTPCode),
4242
("test_missingContentLengthButStillABody", test_missingContentLengthButStillABody),
@@ -313,6 +313,8 @@ class TestURLSession : LoopbackServerTest {
313313
waitForExpectations(timeout: 12)
314314
}
315315

316+
/*
317+
// temporarily disabled (https://bugs.swift.org/browse/SR-5751)
316318
func test_httpRedirectionTimeout() {
317319
let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/UnitedStates"
318320
var req = URLRequest(url: URL(string: urlString)!)
@@ -325,11 +327,14 @@ class TestURLSession : LoopbackServerTest {
325327
if let e = error as? URLError {
326328
XCTAssertEqual(e.code, .timedOut, "Unexpected error code")
327329
return
330+
} else {
331+
XCTFail("test unexpectedly succeeded (response=\(response.debugDescription))")
328332
}
329333
}
330334
task.resume()
331335
waitForExpectations(timeout: 12)
332336
}
337+
*/
333338

334339
func test_http0_9SimpleResponses() {
335340
for brokenCity in ["Pompeii", "Sodom"] {

0 commit comments

Comments
 (0)