Explorar o código

fix: flaky test

Fela Maslen %!s(int64=5) %!d(string=hai) anos
pai
achega
2246fbbb96
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      gmus-backend/pkg/repository/songs_test.go

+ 2 - 1
gmus-backend/pkg/repository/songs_test.go

@@ -172,8 +172,9 @@ var _ = Describe("songs repository", func() {
 			modifiedBatch[0].Title = "Title A modified"
 
 			BeforeEach(func() {
-				repository.BatchUpsertSongs(db, &songs, 2)
+				setup.PrepareDatabaseForTesting()
 
+				repository.BatchUpsertSongs(db, &songs, 2)
 				repository.BatchUpsertSongs(db, &modifiedBatch, 2)
 
 				db.Select(&result, `