Make the Feedly tests build again — fix references to addOperation.
This commit is contained in:
parent
5193df5035
commit
c679d92e09
|
@ -33,7 +33,7 @@ class FeedlyCheckpointOperationTests: XCTestCase {
|
|||
didFinishExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(operation)
|
||||
MainThreadOperationQueue.shared.add(operation)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class FeedlyCheckpointOperationTests: XCTestCase {
|
|||
didFinishExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(operation)
|
||||
MainThreadOperationQueue.shared.add(operation)
|
||||
|
||||
MainThreadOperationQueue.shared.cancelOperations([operation])
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class FeedlyGetCollectionsOperationTests: XCTestCase {
|
|||
completionExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(getCollections)
|
||||
MainThreadOperationQueue.shared.add(getCollections)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
|
||||
|
@ -83,7 +83,7 @@ class FeedlyGetCollectionsOperationTests: XCTestCase {
|
|||
completionExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(getCollections)
|
||||
MainThreadOperationQueue.shared.add(getCollections)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
let testOperation = TestOperation()
|
||||
testOperation.didCallMainExpectation = expectation(description: "Did Call Main")
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
|
||||
testOperation.delegate = delegate
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
|
||||
|
@ -90,7 +90,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
|
||||
XCTAssertFalse(testOperation.isCanceled)
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
waitForExpectations(timeout: 2)
|
||||
|
||||
|
@ -109,7 +109,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
|
||||
XCTAssertFalse(testOperation.isCanceled)
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
MainThreadOperationQueue.shared.cancelOperations([testOperation])
|
||||
|
||||
|
@ -169,7 +169,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
completionExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
XCTAssertTrue(progress.numberRemaining == 1)
|
||||
MainThreadOperationQueue.shared.cancelOperations([testOperation])
|
||||
|
@ -195,7 +195,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
completionExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
XCTAssertTrue(progress.numberRemaining == 1)
|
||||
|
||||
|
@ -220,7 +220,7 @@ class FeedlyOperationTests: XCTestCase {
|
|||
completionExpectation.fulfill()
|
||||
}
|
||||
|
||||
MainThreadOperationQueue.shared.addOperation(testOperation)
|
||||
MainThreadOperationQueue.shared.add(testOperation)
|
||||
|
||||
XCTAssertTrue(progress.numberRemaining == 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue