tests: fix assertion for slice length (#15672)

This assertions got borked during the refactoring; should be at least one
element, not exactly one element.
This commit is contained in:
Seth Hoenig
2023-01-03 15:40:38 -06:00
committed by GitHub
parent e23b3a350e
commit 41f6b4168f

View File

@@ -1537,7 +1537,7 @@ func TestJobs_Evaluations(t *testing.T) {
// Check that we got the evals back, evals are in order most recent to least recent
// so the last eval is the original registered eval
idx := len(evals) - 1
must.Len(t, 1, evals)
must.Positive(t, len(evals))
must.Eq(t, resp.EvalID, evals[idx].ID)
}