diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 15:16:57 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-07-29 15:16:57 -0230 |
| commit | 95acc996fdcc6221741a3072633c5753e88d0f07 (patch) | |
| tree | 05fce93cfef3995efc5ba8a889325516569ce598 /job_test.go | |
| parent | 895bddce2c42e7acb631c23914d2f3568a498c3a (diff) | |
| download | lulu-95acc996fdcc6221741a3072633c5753e88d0f07.zip | |
fix intermittent failure in Jobs() test
Diffstat (limited to 'job_test.go')
| -rw-r--r-- | job_test.go | 12 |
1 files 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 } } |