aboutsummaryrefslogtreecommitdiff
path: root/internal/model/feed_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/model/feed_test.go')
-rw-r--r--internal/model/feed_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/model/feed_test.go b/internal/model/feed_test.go
index 34f89e90..0a4c44a8 100644
--- a/internal/model/feed_test.go
+++ b/internal/model/feed_test.go
@@ -97,6 +97,10 @@ func TestFeedScheduleNextCheckDefault(t *testing.T) {
if feed.NextCheckAt.IsZero() {
t.Error(`The next_check_at must be set`)
}
+
+ if feed.NextCheckAt.After(time.Now().Add(time.Minute * time.Duration(config.Opts.PollingFrequency()))) {
+ t.Error(`The next_check_at should not be after the now + polling frequency`)
+ }
}
func TestFeedScheduleNextCheckEntryCountBasedMaxInterval(t *testing.T) {