 
         // When
         let download = Alamofire.download(urlString)
-        download.downloadProgress { _, _, _ in
-            download.cancel()
+        download.downloadProgress { _, totalBytesReceived, _ in
+            if totalBytesReceived > 10_000 { download.cancel() }
         }
         download.responseJSON { resp in
             response = resp


        // When
        let download = Alamofire.download(urlString)
        download.downloadProgress { _, _, _ in
            download.cancel()
        }
        download.response { resp in
            response = resp

        XCTAssertNotNil(response?.resumeData)
        XCTAssertNotNil(response?.error)

        XCTAssertNotNil(download.resumeData)

        if let responseResumeData = response?.resumeData, let resumeData = download.resumeData {
            XCTAssertEqual(responseResumeData, resumeData)
