We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53268f0 commit 7fae46cCopy full SHA for 7fae46c
1 file changed
Tests/CoreDataRepositoryTests/FetchRepositoryTests.swift
@@ -96,12 +96,12 @@ final class FetchRepositoryTests: CoreDataXCTestCase {
96
})
97
.store(in: &cancellables)
98
wait(for: [firstExp], timeout: 5)
99
- try viewContext().performAndWait {
+ try repositoryContext().performAndWait {
100
do {
101
let objectId = try container().persistentStoreCoordinator
102
.managedObjectID(forURIRepresentation: try XCTUnwrap(expectedMovies.last?.url))
103
- try viewContext().delete(try viewContext().object(with: try XCTUnwrap(objectId)))
104
- try viewContext().save()
+ try repositoryContext().delete(try repositoryContext().object(with: try XCTUnwrap(objectId)))
+ try repositoryContext().save()
105
} catch {
106
XCTFail("Failed to update repository: \(error.localizedDescription)")
107
}
0 commit comments