Attach interval to feed for saving/loading
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user