Skip to content

Commit 025003f

Browse files
committed
test: update test cases for alarm timing and event parsing
1 parent ca89d56 commit 025003f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ical/parse_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ tick = "24h"
741741
notifiers = ["desktop"]
742742
743743
alarms = [
744-
{type = "desktop", when = "-P1D"},
744+
{type = "desktop", when = "-PT1M"},
745745
]
746746
`)
747747

@@ -758,7 +758,6 @@ PRODID:-//Your Company//Your Product//EN
758758
BEGIN:VEVENT
759759
UID:123456789
760760
DTSTART;TZID=Europe/Berlin:20231226T150000
761-
DTEND;TZID=Europe/Berlin:20231226T160000
762761
RRULE:FREQ=DAILY;INTERVAL=1
763762
SUMMARY:Event with Comments
764763
DESCRIPTION:Event with 3 comments
@@ -777,12 +776,12 @@ END:VCALENDAR
777776
}
778777

779778
// Starting now time
780-
now := time.Date(2023, 12, 25, 0, 0, 0, 0, time.UTC)
779+
now := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)
781780

782781
// Expected comments in sequence
783782
expectedComments := []string{"Comment 1", "Comment 2", "Comment 3"}
784783

785-
for i := 0; i < 10; i++ {
784+
for i := 0; i < 100; i++ {
786785
parser := NewParser(conf, now)
787786
err = parser.Parse(file)
788787
if err != nil {

0 commit comments

Comments
 (0)