From 41f6b4168f00baf4eabf9170e957ca68ecb9d135 Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Tue, 3 Jan 2023 15:40:38 -0600 Subject: [PATCH] tests: fix assertion for slice length (#15672) This assertions got borked during the refactoring; should be at least one element, not exactly one element. --- api/jobs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/jobs_test.go b/api/jobs_test.go index 64a2a0bde..27f79b17a 100644 --- a/api/jobs_test.go +++ b/api/jobs_test.go @@ -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) }