Make Feedly tests build again.

This commit is contained in:
Brent Simmons 2020-01-19 22:19:54 -08:00
parent f3802488c3
commit f9f4d70868
2 changed files with 1 additions and 10 deletions

View File

@ -80,7 +80,6 @@ class FeedlyLogoutOperationTests: XCTestCase {
waitForExpectations(timeout: 1)
XCTAssertTrue(logout.isCanceled)
XCTAssertTrue(logout.isFinished)
do {
let accountAccessToken = try account.retrieveCredentials(type: .oauthAccessToken)

View File

@ -30,7 +30,7 @@ class FeedlyOperationTests: XCTestCase {
didCallMainExpectation?.fulfill()
if let error = mockError {
didFinish(error)
didFinish(with: error)
} else {
didFinish()
}
@ -88,16 +88,12 @@ class FeedlyOperationTests: XCTestCase {
}
XCTAssertFalse(testOperation.isFinished)
XCTAssertFalse(testOperation.isExecuting)
XCTAssertFalse(testOperation.isCanceled)
MainThreadOperationQueue.shared.addOperation(testOperation)
waitForExpectations(timeout: 2)
XCTAssertTrue(testOperation.isFinished)
XCTAssertFalse(testOperation.isExecuting)
XCTAssertFalse(testOperation.isCanceled)
}
@ -111,8 +107,6 @@ class FeedlyOperationTests: XCTestCase {
completionExpectation.fulfill()
}
XCTAssertFalse(testOperation.isFinished)
XCTAssertFalse(testOperation.isExecuting)
XCTAssertFalse(testOperation.isCanceled)
MainThreadOperationQueue.shared.addOperation(testOperation)
@ -121,8 +115,6 @@ class FeedlyOperationTests: XCTestCase {
waitForExpectations(timeout: 2)
XCTAssertTrue(testOperation.isFinished)
XCTAssertFalse(testOperation.isExecuting)
XCTAssertTrue(testOperation.isCanceled)
}