diff --git a/pkg/sqlite/gallery_test.go b/pkg/sqlite/gallery_test.go index 9408ec1b40e..00f4ccffac6 100644 --- a/pkg/sqlite/gallery_test.go +++ b/pkg/sqlite/gallery_test.go @@ -188,8 +188,8 @@ func Test_galleryQueryBuilder_Create(t *testing.T) { } // Ordering is not ensured - sortGallery(copy) - sortGallery(s) + sortGallery(©) + sortGallery(&s) assert.Equal(copy, s) @@ -392,7 +392,7 @@ func Test_galleryQueryBuilder_Update(t *testing.T) { } // Ordering is not ensured - sortGallery(copy) + sortGallery(©) sortGallery(s) assert.Equal(copy, *s) @@ -825,9 +825,9 @@ func Test_galleryQueryBuilder_UpdatePartialRelationships(t *testing.T) { } // Ordering is not ensured - sortGallery(copy) sortGallery(s) sortGallery(got) + sortGallery(&tt.want) // only compare fields that were in the partial if tt.partial.PerformerIDs != nil {