From c679d92e09ec46b1393b8021371224e07587829d Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 5 Feb 2020 22:37:43 -0800 Subject: [PATCH] =?UTF-8?q?Make=20the=20Feedly=20tests=20build=20again=20?= =?UTF-8?q?=E2=80=94=C2=A0fix=20references=20to=20addOperation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Feedly/FeedlyCheckpointOperationTests.swift | 4 ++-- .../FeedlyGetCollectionsOperationTests.swift | 4 ++-- .../AccountTests/Feedly/FeedlyOperationTests.swift | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift index 146bccf71..565edb8d2 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift @@ -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]) diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift index 974356851..e64a2a421 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift @@ -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) diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift index c1063af86..7492baa90 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift @@ -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)