From 95acc996fdcc6221741a3072633c5753e88d0f07 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 29 Jul 2026 15:16:57 -0230 Subject: fix intermittent failure in Jobs() test --- job_test.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/job_test.go b/job_test.go index fe6ea48..27b371d 100644 --- a/job_test.go +++ b/job_test.go @@ -76,9 +76,17 @@ func TestJobs(t *testing.T) { for _, j := range jobsOut { for i := range jobsIn { if j.Id == jobsIn[i].Id { - jobsIn[i].Modified = j.Modified // ignore timestamp + // ignore timestamp + jobsIn[i].Modified = j.Modified + + // ignore normalizations + require.Len(t, jobsIn[i].Items, len(j.Items)) + for iti := range jobsIn[i].Items { + jobsIn[i].Items[iti].PrintableNormalization = j.Items[iti].PrintableNormalization + } + require.Equal(t, jobsIn[i], j) - jobsIn = append(jobsIn[:i], jobsIn[i+1:]...) + jobsIn = append(jobsIn[:i], jobsIn[i+1:]...) // found this one break } } -- cgit v1.2.3