Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pelumy committed Jan 31, 2025
1 parent 228eae6 commit 7180481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NosTests/Service/DatabaseCleanerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ final class DatabaseCleanerTests: CoreDataTestCase {
// Arrange
let alice = try Author.findOrCreate(by: KeyFixture.alice.publicKeyHex, context: testContext)

// Creates old notification (2 months + 1 day old)
let oldDate = Calendar.current.date(byAdding: .day, value: -61, to: .now)!
// Creates old notification (3 months)
let oldDate = Calendar.current.date(byAdding: .month, value: -3, to: .now) ?? .now
let oldNotification = NosNotification(context: testContext)
oldNotification.createdAt = oldDate
oldNotification.user = alice
Expand Down

0 comments on commit 7180481

Please sign in to comment.