Make the Feedly tests build again — fix references to addOperation.

This commit is contained in:
Brent Simmons 2020-02-05 22:37:43 -08:00
parent 5193df5035
commit c679d92e09
3 changed files with 11 additions and 11 deletions

View File

@ -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])

View File

@ -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)

View File

@ -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)