remove feed key
Former-commit-id: b047d25d19c2861a1283799dd9b38aacebed7638
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user