test multi-executions
This commit is contained in:
@@ -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")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user