UnblockFailed needs to untrack the job

This commit is contained in:
Alex Dadgar 2016-06-23 15:26:26 -07:00
parent 14f6b369ec
commit ccf93d7e44
1 changed files with 7 additions and 0 deletions

View File

@ -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)
}
} }