mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user