change to feed.Foo methods instead of passing in feed to package func
This commit is contained in:
@@ -56,7 +56,7 @@ func TestFeeds(t *testing.T) {
|
||||
t.Error("execution.version")
|
||||
}
|
||||
|
||||
if err := feeds.Executed(ctx, got.Entry.ID, got.Version.Created); err != nil {
|
||||
if err := got.Executed(ctx); err != nil {
|
||||
t.Fatal("cannot executed:", err)
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ func TestFeeds(t *testing.T) {
|
||||
t.Errorf("changes after execution: was \n\t%+v but now \n\t%+v", got, got2)
|
||||
}
|
||||
|
||||
if err := feeds.Executed(ctx, got.Entry.ID, got.Version.Created); err != nil {
|
||||
if err := got.Executed(ctx); err != nil {
|
||||
t.Fatal("cannot executed again:", err)
|
||||
}
|
||||
got3, err := feeds.Get(ctx, id)
|
||||
|
||||
Reference in New Issue
Block a user