fix: keep cancellation pending until execution cleanup is confirmed
This commit is contained in:
@@ -102,6 +102,12 @@ func TestRetainedStageDiffsAcrossVisitsAndFailures(t *testing.T) {
|
||||
if ending == "cancel" {
|
||||
want = "canceled"
|
||||
}
|
||||
if ending == "cleanup" {
|
||||
want = "running"
|
||||
if !detail.CleanupUnconfirmed || detail.FinishedAt != "" {
|
||||
t.Fatal("unconfirmed cleanup reported as settled", detail)
|
||||
}
|
||||
}
|
||||
if detail.Status != want {
|
||||
t.Fatal("diff changed verdict", detail.Status, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user