test multi-executions

main
Bel LaPointe 2025-04-27 11:19:26 -06:00
parent 7f97eecbca
commit 7f4f760407
1 changed files with 8 additions and 0 deletions

View File

@ -104,5 +104,13 @@ func TestFeeds(t *testing.T) {
if got != got2 {
t.Errorf("changes after execution: was \n\t%+v but now \n\t%+v", got, got2)
}
if err := f.Executed(ctx, got.Entry.ID, got.Version.Created); err != nil {
t.Fatal("cannot executed again:", err)
} else if got3, err := f.Get(ctx, id); err != nil {
t.Fatal("cannot get w executed again:", err)
} else if got2.Execution == got3.Execution {
t.Errorf("getting after second execution returned first execution")
}
})
}