Skip to content

Commit

Permalink
blocked_evals_test improve requireBlockedEvalsEnqueued error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jul 10, 2019
1 parent e7eb4a2 commit 7e9de21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/blocked_evals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ func requireBlockedEvalsEnqueued(t *testing.T, blocked *BlockedEvals, broker *Ev
// Verify Unblock caused an enqueue
brokerStats := broker.Stats()
if brokerStats.TotalReady != enqueued {
return false, fmt.Errorf("bad: %#v", brokerStats)
return false, fmt.Errorf("missing enqueued evals: %#v", brokerStats)
}

// Verify Unblock updates the stats
bStats := blocked.Stats()
if bStats.TotalBlocked != 0 || bStats.TotalEscaped != 0 {
return false, fmt.Errorf("bad: %#v", bStats)
return false, fmt.Errorf("evals still blocked: %#v", bStats)
}
return true, nil
}, func(err error) {
Expand Down

0 comments on commit 7e9de21

Please sign in to comment.