Skip to content

Commit

Permalink
Print the progress of the upload for question purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
piercifani committed Oct 10, 2018
1 parent 882072b commit c2b86c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/APIClient/APIClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ class APIClientTests: XCTestCase {
)

let uploadTask = sut.perform(uploadRequest)
var progress: ProgressObserver! = ProgressObserver.init(progress: uploadTask.progress) { (progress) in
print(progress.fractionCompleted)
}
let _ = try self.waitAndExtractValue(uploadTask, timeout: 10)
progress = nil
}

func testUploadCancel() {
Expand Down

0 comments on commit c2b86c9

Please sign in to comment.