Browse Source

Squashed commit of the following:

commit 32573d05b91d8b7349ca31b4726e80212483f02a
Author: Jon Shier <jon@jonshier.com>
Date:   Sat Nov 24 21:38:03 2018 -0500

    Revert CocoaPods version.

commit 657b2e5248a81e0d8f50533de43de57b3e3c514f
Author: Jon Shier <jon@jonshier.com>
Date:   Sat Nov 24 21:34:07 2018 -0500

    Disable swift_versions for now.

commit d0208adc369b3fb1e622aca5f0a3e0d170c4832b
Author: Jon Shier <jon@jonshier.com>
Date:   Sat Nov 24 21:22:04 2018 -0500

    Updates for 4.8.0 (#2648)

    * Prepare for 4.8 update.

    * Update Jazzy docs.

    * Update Swift packages.

    * Add os for Travis.

    * Move base Swift vesion to 4.

    * Update Travis to use bundle install, include xcpretty.

    * Fix watchOS targets, tests.

    * Add support for swift_versions.

    * Update CHANGELOG and .ruby-version.

    * Cache bundler and RVM.

    * Remove manual bundle install.

    * Use Ruby 2.4.5.

    * Remove manual RVM cache.

    * Remove now flaky resume data tests.

    * Fix non-deterministic tests.

    * Reenable pod lib lint step.

commit cbe9df67e590e797870d1fced2be375503496e0c
Author: Stéphane Copin <stephane.copin@live.fr>
Date:   Sun Nov 25 01:05:44 2018 +0100

    Makes rethrows all methods that can be marked as rethrows (#2488)

    * Makes rethrows all methods that can be marked as rethrows

    * Undo throwing changes to Response.

    * Remove throwing changes from map.

commit eb7610c264a6b9fcf99810924eb59c4a07b97ca5
Author: Giulio <giulio.lombardo@ynap.com>
Date:   Sun Nov 25 00:58:13 2018 +0100

    Improve cURLRepresentation implementation readability (#2625)

    * Improve cURLRepresentation variable readability

    * Further condense header handling.

commit 91538000a7b010d0fbfd24567dc08a3064fd6747
Author: Wanbok Choi (Wayne) <choi@wanbok.com>
Date:   Sun Nov 25 08:36:02 2018 +0900

    Add re-designed Package.swift manifest for swift 4 (#2621)

commit ed37179f066d65bd2a9c4aa5e20cb94863a14cea
Author: jaltreuter <jaltreuter@gmail.com>
Date:   Sat Nov 24 15:35:29 2018 -0800

    Add optional encoding completion callback queue argument for multipart form upload (#2620)

    * Add optional encoding completion callback queue argument for multipart form upload

    * Use queue argument of upload function when calling alternate upload function

commit a5cd9e233f24df3583f4b02f7e4722c076ab9032
Author: Jon Shier <jon@jonshier.com>
Date:   Mon Aug 20 01:16:56 2018 -0400

    Fix documentation_url in podspec.

commit 15d33128baf91f2f90124b177b713eb13cc0a6f1
Author: Aryeh Greenberg <aryeh@aryehgreenberg.com>
Date:   Mon Aug 20 00:57:32 2018 -0400

    Should explicitly specify documentation url (#2569)

    Cocoadocs does not work anymore. To avoid a 404 when a user clicks the documentation url on cocoapods, you need to specify a url.

commit 85badad3170652de2aa0469fb6570e00b10ae340
Author: Jon Shier <jon@jonshier.com>
Date:   Tue Jul 31 16:37:42 2018 -0400

    Add back note about using SO in general.

commit fab3c1928326987eddeae02ee3188e821c161f35
Author: Jon Shier <jon@jonshier.com>
Date:   Mon Jul 30 23:03:43 2018 -0400

    Update the README for the new forum.

commit 61a780f3b58ee0d2bb76fdb7b89dbc9751d521d7
Author: Jon Shier <jon@jonshier.com>
Date:   Sun Jul 8 22:46:35 2018 -0400

    Update Podspec.

commit 7286193f06e81435cd9624259d52aa66e8ac91c0
Author: Jon Shier <jon@jonshier.com>
Date:   Sun Jul 8 22:45:12 2018 -0400

    Fix CHANGELOG link.

commit 0e41f50d88da32448bfc446f799dfec9daa0f0c2
Author: Jon Shier <jon@jonshier.com>
Date:   Sun Jul 8 22:42:50 2018 -0400

    Prepare 4.7.3 Release (#2553)

    * Updates for 4.7.3 release.

    * Update CHANGELOG.

commit b2bafc17d390b8583f358712d410188b4f32365a
Author: Jon Shier <jon@jonshier.com>
Date:   Sun Jul 8 21:31:09 2018 -0400

    Update for Xcode 10 and Swift 4.2 (#2552)

    * Update for Xcode 10 and Swift 4.2.

    * Revert Travis update.

commit c563be562f3c9ff327919bb88599e3082db3abda
Author: Karim <karimhm@users.noreply.github.com>
Date:   Sat Jul 7 23:27:48 2018 +0100

    Use HTTPS links in the documentation (#2550)

    * Use HTTPS links in CHANGELOG

    Update CHANGELOG to use HTTPS links instead of HTTP

    * Use HTTPS links in CONTRIBUTING

    Update CONTRIBUTING to use HTTPS links instead of HTTP

    * Use HTTPS links in README

    Update README to use HTTPS links instead of HTTP if supported

    * Use HTTPS links in Usage.md

    Update Usage.md to use HTTPS links instead of HTTP

commit ff16ce9e87aeb0ee1f30b28789db1fff01e8fb02
Author: Xing He <de@sent.as>
Date:   Sun Jun 17 06:06:48 2018 +0800

    Fix code sytle in documentation (#2484)

commit 5773768d8e8d7cbe0e535b80357b148a6473df38
Author: Constantin Lungu <nemesis@users.noreply.github.com>
Date:   Sun Jun 17 01:06:14 2018 +0300

    Fix indentation in Usage.md (#2505)
Jon Shier 7 years ago
parent
commit
82c1bd0026
1 changed files with 0 additions and 27 deletions
  1. 0 27
      Tests/DownloadTests.swift

+ 0 - 27
Tests/DownloadTests.swift

@@ -136,7 +136,6 @@ class DownloadResponseTestCase: BaseTestCase {
         XCTAssertNotNil(response?.request)
         XCTAssertNil(response?.response)
         XCTAssertNil(response?.fileURL)
-        XCTAssertNil(response?.resumeData)
         XCTAssertNotNil(response?.error)
     }
 
@@ -388,32 +387,6 @@ class DownloadResponseTestCase: BaseTestCase {
 class DownloadResumeDataTestCase: BaseTestCase {
     let urlString = "https://upload.wikimedia.org/wikipedia/commons/6/69/NASA-HS201427a-HubbleUltraDeepField2014-20140603.jpg"
 
-    func testThatImmediatelyCancelledDownloadDoesNotHaveResumeDataAvailable() {
-        // Given
-        let expectation = self.expectation(description: "Download should be cancelled")
-        var response: DownloadResponse<URL?>?
-
-        // When
-        let download = AF.download(urlString)
-            .response { resp in
-                response = resp
-                expectation.fulfill()
-            }
-
-        download.cancel()
-
-        waitForExpectations(timeout: timeout, handler: nil)
-
-        // Then
-        XCTAssertNotNil(response?.request)
-        XCTAssertNil(response?.response)
-        XCTAssertNil(response?.fileURL)
-        XCTAssertNil(response?.resumeData)
-        XCTAssertNotNil(response?.error)
-
-        XCTAssertNil(download.resumeData)
-    }
-
     func testThatCancelledDownloadResponseDataMatchesResumeData() {
         // Given
         let expectation = self.expectation(description: "Download should be cancelled")