Skip to content

Commit 8863ea2

Browse files
authored
Merge pull request #1042 from pushkarnk/enable-urlsession-tests
2 parents b812797 + 2522233 commit 8863ea2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

TestFoundation/TestNSURLSession.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@ class TestURLSession : XCTestCase {
2121

2222
static var allTests: [(String, (TestURLSession) -> () throws -> Void)] {
2323
return [
24-
//Disabling to avoid https://bugs.swift.org/browse/SR-4677 and a timeout failure
25-
// ("test_dataTaskWithURL", test_dataTaskWithURL),
26-
// ("test_dataTaskWithURLRequest", test_dataTaskWithURLRequest),
24+
("test_dataTaskWithURL", test_dataTaskWithURL),
25+
("test_dataTaskWithURLRequest", test_dataTaskWithURLRequest),
2726
("test_dataTaskWithURLCompletionHandler", test_dataTaskWithURLCompletionHandler),
2827
("test_dataTaskWithURLRequestCompletionHandler", test_dataTaskWithURLRequestCompletionHandler),
29-
// ("test_downloadTaskWithURL", test_downloadTaskWithURL),
30-
// ("test_downloadTaskWithURLRequest", test_downloadTaskWithURLRequest),
28+
("test_downloadTaskWithURL", test_downloadTaskWithURL),
29+
("test_downloadTaskWithURLRequest", test_downloadTaskWithURLRequest),
3130
("test_downloadTaskWithRequestAndHandler", test_downloadTaskWithRequestAndHandler),
3231
("test_downloadTaskWithURLAndHandler", test_downloadTaskWithURLAndHandler),
3332
("test_finishTaskAndInvalidate", test_finishTasksAndInvalidate),
34-
// ("test_taskError", test_taskError),
33+
("test_taskError", test_taskError),
3534
("test_taskCopy", test_taskCopy),
36-
// ("test_cancelTask", test_cancelTask),
37-
// ("test_taskTimeout", test_taskTimeout),
35+
("test_cancelTask", test_cancelTask),
36+
("test_taskTimeout", test_taskTimeout),
3837
("test_verifyRequestHeaders", test_verifyRequestHeaders),
3938
("test_verifyHttpAdditionalHeaders", test_verifyHttpAdditionalHeaders),
4039
("test_timeoutInterval", test_timeoutInterval),

0 commit comments

Comments
 (0)