Skip to content

Commit

Permalink
Clean tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lickel committed Aug 30, 2024
1 parent 378c34a commit 2eedebe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import FetchRequests

class FetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness {
class FetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness, @unchecked Sendable {
// swiftlint:disable implicitly_unwrapped_optional test_case_accessibility

private(set) var controller: FetchedResultsController<TestObject>!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import FetchRequests

class PaginatingFetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness {
class PaginatingFetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness, @unchecked Sendable {
// swiftlint:disable implicitly_unwrapped_optional test_case_accessibility

private(set) var controller: PaginatingFetchedResultsController<TestObject>!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import FetchRequests

class PausableFetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness {
class PausableFetchedResultsControllerTestCase: XCTestCase, FetchedResultsControllerTestHarness, @unchecked Sendable {
// swiftlint:disable implicitly_unwrapped_optional test_case_accessibility

private(set) var controller: PausableFetchedResultsController<TestObject>!
Expand Down
4 changes: 2 additions & 2 deletions FetchRequests/Tests/TestObject+Associations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ extension TestObject {
extension FetchRequestAssociation where FetchedObject == TestObject {
convenience init<AssociatedType: TestObject>(
for associatedType: AssociatedType.Type,
keyPath: KeyPath<FetchedObject, AssociatedType.ID?>,
keyPath: KeyPath<FetchedObject, AssociatedType.ID?> & Sendable,
request: @escaping AssocationRequestByID<AssociatedType.ID, AssociatedType>
) {
self.init(
Expand All @@ -196,7 +196,7 @@ extension FetchRequestAssociation where FetchedObject == TestObject {

convenience init<AssociatedType: TestObject>(
for associatedType: [AssociatedType].Type,
keyPath: KeyPath<FetchedObject, [AssociatedType.ID]?>,
keyPath: KeyPath<FetchedObject, [AssociatedType.ID]?> & Sendable,
request: @escaping AssocationRequestByID<AssociatedType.ID, AssociatedType>
) {
self.init(
Expand Down

0 comments on commit 2eedebe

Please sign in to comment.