diff --git a/backend/handlers/bookings/edit_requests_test.go b/backend/handlers/bookings/edit_requests_test.go index ed99d19..6d43f6a 100644 --- a/backend/handlers/bookings/edit_requests_test.go +++ b/backend/handlers/bookings/edit_requests_test.go @@ -1577,8 +1577,7 @@ func TestAdminApproveEditRequestHandler_OverlapWithBooking(t *testing.T) { // Create first booking at time T // Use a start time <48h away so auto-approval doesn't trigger at request- // creation time, allowing us to test the approval-time overlap check. - baseTime := clock.Now().Add(24 * time.Hour).Truncate(time.Second) - baseTime = time.Date(baseTime.Year(), baseTime.Month(), baseTime.Day(), 9, 0, 0, 0, baseTime.Location()) + baseTime := clock.Now().Add(40 * time.Hour).Truncate(time.Second) booking1, err := fixtures.CreateTestBooking(tx, userID, serviceID) if err != nil { diff --git a/backend/handlers/bookings/overlap_test.go b/backend/handlers/bookings/overlap_test.go index bfa5599..7508567 100644 --- a/backend/handlers/bookings/overlap_test.go +++ b/backend/handlers/bookings/overlap_test.go @@ -1853,8 +1853,7 @@ func TestAdminApproveEditRequest_EvictsPendingRelease(t *testing.T) { dur := durationMinutes(t, ctx, tx, serviceID) // Use a booking <48h from now so RequestEdit does NOT auto-approve - nearTime := clock.Now().Add(24 * time.Hour).Truncate(time.Second) - nearTime = time.Date(nearTime.Year(), nearTime.Month(), nearTime.Day(), 10, 0, 0, 0, nearTime.Location()) + nearTime := clock.Now().Add(40 * time.Hour).Truncate(time.Second) bookingA, err := fixtures.CreateTestBookingAtTime(tx, userID, serviceID, nearTime) if err != nil {