Attach interval to feed for saving/loading

This commit is contained in:
Bel LaPointe
2018-10-09 09:24:10 -06:00
parent e4785e6a05
commit 13e747d846
3 changed files with 30 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ import (
"os"
"path"
"testing"
"time"
)
func Test_RSSFeed(t *testing.T) {
@@ -31,7 +32,7 @@ func Test_RSSFeed(t *testing.T) {
},
}
for _, c := range cases {
feed, err := New(s.URL, c.itemFilter, c.contentFilter)
feed, err := New(s.URL, c.itemFilter, c.contentFilter, time.Minute)
if err != nil {
t.Errorf("couldn't create new feed %v: %v", feed, err)
}