Skip to content

Commit

Permalink
Fix problem with missing reminders making the reminder window wider (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
larkox authored Jun 15, 2020
1 parent 7546d8b commit c18c1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/mscalendar/availability.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
calendarViewTimeWindowSize = 10 * time.Minute
StatusSyncJobInterval = 5 * time.Minute
upcomingEventNotificationTime = 10 * time.Minute
upcomingEventNotificationWindow = (StatusSyncJobInterval * 9) / 10 //90% of the interval
upcomingEventNotificationWindow = (StatusSyncJobInterval * 11) / 10 //110% of the interval
)

type Availability interface {
Expand Down
2 changes: 1 addition & 1 deletion server/mscalendar/availability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestReminders(t *testing.T) {
},
"One remote event, but it is too far in the future.": {
remoteEvents: []*remote.Event{
{ICalUID: "event_id", Start: remote.NewDateTime(time.Now().Add(15*time.Minute).UTC(), "UTC"), End: remote.NewDateTime(time.Now().Add(45*time.Minute).UTC(), "UTC")},
{ICalUID: "event_id", Start: remote.NewDateTime(time.Now().Add(20*time.Minute).UTC(), "UTC"), End: remote.NewDateTime(time.Now().Add(45*time.Minute).UTC(), "UTC")},
},
numReminders: 0,
shouldLogError: false,
Expand Down

0 comments on commit c18c1c1

Please sign in to comment.