 		waitForExpectations(timeout: 2)
 		
 		let expectedArticleIds = Set(items.map { $0.id })
-		let expectedArticles = account.fetchArticles(.articleIDs(expectedArticleIds))
+		let expectedArticles = try account.fetchArticles(.articleIDs(expectedArticleIds))
 		XCTAssertEqual(expectedArticles.count, expectedArticleIds.count, "Did not fetch all the articles.")
 	}
 	

		waitForExpectations(timeout: 2)
	}
	
	func testIngestsManyPagesSuccess() {
		let service = TestGetPagedStreamContentsService()
		let resource = FeedlyCategoryResourceId(id: "user/1234/category/5678")
		let newerThan: Date? = Date(timeIntervalSinceReferenceDate: 0)

		
		// Find articles inserted.
		let articleIds = Set(service.pages.values.map { $0.items }.flatMap { $0 }.map { $0.id })
		let articles = try account.fetchArticles(.articleIDs(articleIds))
		XCTAssertEqual(articleIds.count, articles.count)
	}
}
