remove feed key

Former-commit-id: b047d25d19c2861a1283799dd9b38aacebed7638
This commit is contained in:
bel
2019-06-22 13:13:02 -06:00
parent eb356c3339
commit c0c88502c4
5 changed files with 14 additions and 19 deletions

View File

@@ -116,7 +116,7 @@ func TestRSSFeedPull(t *testing.T) {
t.Errorf("updated is wrong: %v", f)
}
keys, err := config.Values().DB.List([]string{nsItems, f.Key})
keys, err := config.Values().DB.List([]string{nsItems})
if err != nil {
t.Fatal(err)
}
@@ -133,7 +133,7 @@ func TestRSSFeedPull(t *testing.T) {
t.Fatal(err)
}
log.SetOutput(os.Stderr)
keysB, err := config.Values().DB.List([]string{nsItems, f.Key})
keysB, err := config.Values().DB.List([]string{nsItems})
if err != nil {
t.Fatal(err)
}
@@ -142,8 +142,7 @@ func TestRSSFeedPull(t *testing.T) {
}
i := &Item{
Link: keys[0],
FeedKey: f.Key,
Link: keys[0],
}
if err := i.load(); err != nil {
t.Fatal(err)
@@ -151,7 +150,7 @@ func TestRSSFeedPull(t *testing.T) {
if *i == (Item{}) {
t.Fatal(i)
}
if i.Link == "" || i.Title == "" || i.FeedKey == "" || i.Content == "" {
if i.Link == "" || i.Title == "" || i.Content == "" {
t.Fatal(i)
}
}