Skip to content

Commit

Permalink
Fix warnings and run swiftformat
Browse files Browse the repository at this point in the history
3.0-preview
  • Loading branch information
roanutil committed Jan 26, 2024
1 parent e5993c4 commit 8b3f49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ final class CRUDRepositoryTests: CoreDataXCTestCase {
}

func testCreateFailure() async throws {
let historyTimeStamp = Date()
let transactionAuthor: String = #function
let movie = Movie(id: UUID(), title: "Create Success", releaseDate: Date(), boxOffice: 100)
var existingMovie = try await repositoryContext().perform(schedule: .immediate) {
let existingMovie = try await repositoryContext().perform(schedule: .immediate) {
let object = try ManagedMovie(context: self.repositoryContext())
try movie.updating(managed: object)
try self.repositoryContext().save()
Expand Down
2 changes: 1 addition & 1 deletion Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CoreDataXCTestCase: XCTestCase {
let historyResult = try XCTUnwrap(repositoryContext().execute(historyRequest) as? NSPersistentHistoryResult)
let history = try XCTUnwrap(historyResult.result as? [NSPersistentHistoryTransaction])
XCTAssertGreaterThan(history.count, 0)
history.forEach { historyTransaction in
for historyTransaction in history {
XCTAssertEqual(historyTransaction.author, transactionAuthor)
}
}
Expand Down

0 comments on commit 8b3f49e

Please sign in to comment.