Skip to content

Commit

Permalink
fix: correct test date and clarify rrule issue in TestNextTimeRDate
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Aug 27, 2024
1 parent a3a82b4 commit 3a27f9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ical/eventtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ END:VEVENT`
t.Logf("Error message is: %s", err)
}

// TODO Why is rrule no doing properly
// Seems to be BUG in github.com/teambition/rrule-go
// next should be 1 september
func TestNextTimeRDate(t *testing.T) {
event := `BEGIN:VEVENT
UID:123456789
Expand All @@ -253,7 +254,7 @@ END:VEVENT`
et := newEventTime(event)
et.parse()

now := time.Date(2024, 1, 10, 0, 0, 0, 0, time.UTC)
now := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)
nextTime, err := et.nextTime(now)
if err != nil {
t.Fatalf("nextTime failed: %v", err)
Expand Down

0 comments on commit 3a27f9a

Please sign in to comment.