We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d76a0 commit 6bbb90eCopy full SHA for 6bbb90e
FilestackSDKTests/UploadTests.swift
@@ -69,13 +69,13 @@ class UploadTests: XCTestCase {
69
stubMultipartCompleteRequest()
70
71
let expectation = self.expectation(description: "request should succeed")
72
- let progressExpectation = self.expectation(description: "request should succeed")
73
-
+ var progressExpectation: XCTestExpectation? = self.expectation(description: "request should succeed")
74
var json: [String: Any]!
75
76
let progressHandler: ((Progress) -> Void) = { progress in
77
if progress.completedUnitCount == UploadTests.largeFileSize {
78
- progressExpectation.fulfill()
+ progressExpectation?.fulfill()
+ progressExpectation = nil
79
}
80
81
0 commit comments