cron/main_test uses proxy to read testdata/*.rss
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user