Merge pull request #1602 from hashicorp/b-fix-job-eval-test

Fixed a test
This commit is contained in:
Diptanu Choudhury 2016-08-16 17:08:53 -07:00 committed by GitHub
commit 7757aecf07

View file

@ -376,7 +376,7 @@ func TestHTTP_JobEvaluations(t *testing.T) {
evals := obj.([]*structs.Evaluation)
// Can be multiple evals, use the last one, since they are in order
idx := len(evals) - 1
if len(evals) > 0 || evals[idx].ID != resp.EvalID {
if len(evals) < 0 || evals[idx].ID != resp.EvalID {
t.Fatalf("bad: %v", evals)
}