Harden backup and restore operations
This commit is contained in:
1 parent
6cbf170d65
commit
bbf063c157
26 files changed
+914
-184
No files matched your search
@@ -43,3 +43,13 @@ func TestPreviousWithinCatchUpWindow(t *testing.T) {
|
||||
t.Fatalf("unexpected catch-up match %v", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCronUsesOrForRestrictedMonthDayAndWeekday(t *testing.T) {
|
||||
expr, err := Parse("0 2 1 * 1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !expr.Matches(time.Date(2026, 6, 8, 2, 0, 0, 0, time.UTC)) {
|
||||
t.Fatal("restricted day-of-month and weekday were treated as AND")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user