Revise Feedly tests to use MainThreadOperationQueue; get them building again. They don’t pass, but at least they build.

This commit is contained in:
Brent Simmons
2020-01-15 22:10:06 -08:00
parent 1d755e7f77
commit 57af7526da
18 changed files with 190 additions and 207 deletions

View File

@@ -8,6 +8,7 @@
import Account
import UIKit
import RSCore
protocol AddAccountDismissDelegate: UIViewController {
func dismiss()
@@ -48,7 +49,7 @@ class AddAccountViewController: UITableViewController, AddAccountDismissDelegate
let addAccount = OAuthAccountAuthorizationOperation(accountType: .feedly)
addAccount.delegate = self
addAccount.presentationAnchor = self.view.window!
OperationQueue.main.addOperation(addAccount)
MainThreadOperationQueue.shared.addOperation(addAccount)
case 3:
let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "FeedWranglerAccountNavigationViewController") as! UINavigationController
navController.modalPresentationStyle = .currentContext