test multi-executions
parent
7f97eecbca
commit
7f4f760407
|
|
@ -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")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue