change to feed.Foo methods instead of passing in feed to package func

This commit is contained in:
Bel LaPointe
2025-04-27 11:55:00 -06:00
parent ce02422b1d
commit 18fd8dfac5
5 changed files with 24 additions and 5 deletions

View File

@@ -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)