cron/main_test uses proxy to read testdata/*.rss

This commit is contained in:
Bel LaPointe
2025-04-27 13:17:02 -06:00
parent 49c44b9df8
commit 0628a678d8
4 changed files with 95 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ var (
)
func (feed Feed) ShouldExecute() (bool, error) {
if feed.Entry.Deleted.IsZero() {
if !feed.Entry.Deleted.IsZero() {
return false, nil
}
@@ -45,7 +45,7 @@ func (feed Feed) ShouldExecute() (bool, error) {
return false, fmt.Errorf("illegal cron %q", feed.Version.Cron)
}
next := schedule.Next(feed.Execution.Executed)
return time.Now().Before(next), nil
return time.Now().After(next), nil
}
func (feed Feed) Fetch(ctx context.Context) (Items, error) {