Merge pull request #1602 from hashicorp/b-fix-job-eval-test
Fixed a test
This commit is contained in:
commit
7757aecf07
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue