UnblockFailed needs to untrack the job
This commit is contained in:
parent
14f6b369ec
commit
ccf93d7e44
|
@ -420,4 +420,11 @@ func TestBlockedEvals_UnblockFailed(t *testing.T) {
|
||||||
}, func(err error) {
|
}, func(err error) {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Reblock an eval for the same job and check that it gets tracked.
|
||||||
|
blocked.Block(e)
|
||||||
|
blockedStats = blocked.Stats()
|
||||||
|
if blockedStats.TotalBlocked != 1 && blockedStats.TotalEscaped != 1 {
|
||||||
|
t.Fatalf("bad: %#v", blockedStats)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue