From f9afd889eacfba4f27acda9e1ce98f8c72c7cf32 Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 30 Jun 2025 18:00:32 -0400 Subject: [PATCH] fix formating Signed-off-by: Deluan --- persistence/artist_repository_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/persistence/artist_repository_test.go b/persistence/artist_repository_test.go index 62db5f961..58e89c865 100644 --- a/persistence/artist_repository_test.go +++ b/persistence/artist_repository_test.go @@ -633,9 +633,9 @@ var _ = Describe("ArtistRepository", func() { err := ur.Put(&unauthorizedUser) Expect(err).ToNot(HaveOccurred()) - // Then add library access - err = ur.SetUserLibraries(unauthorizedUser.ID, []int{1}) - Expect(err).ToNot(HaveOccurred()) + // Then add library access + err = ur.SetUserLibraries(unauthorizedUser.ID, []int{1}) + Expect(err).ToNot(HaveOccurred()) // Update the user object with the libraries to simulate middleware behavior libraries, err := ur.GetUserLibraries(unauthorizedUser.ID) @@ -648,11 +648,11 @@ var _ = Describe("ArtistRepository", func() { restrictedRepo = NewArtistRepository(ctx, GetDBXBuilder()) }) - AfterEach(func() { - // Clean up: remove the user's library access - ur := NewUserRepository(request.WithUser(log.NewContext(context.TODO()), adminUser), GetDBXBuilder()) - _ = ur.SetUserLibraries(unauthorizedUser.ID, []int{}) - }) + AfterEach(func() { + // Clean up: remove the user's library access + ur := NewUserRepository(request.WithUser(log.NewContext(context.TODO()), adminUser), GetDBXBuilder()) + _ = ur.SetUserLibraries(unauthorizedUser.ID, []int{}) + }) It("CountAll returns correct count after gaining access", func() { count, err := restrictedRepo.CountAll()