gorm store update

This commit is contained in:
Vladimir V Maksimov
2025-11-06 17:27:54 +03:00
parent 9f6754f97c
commit 1619c1d9b1
3 changed files with 21 additions and 13 deletions

View File

@@ -22,7 +22,11 @@ func newTestService(t *testing.T) (*gorm.DB, *service.VersionService, *store.Gor
t.Fatalf("failed to migrate: %v", err)
}
storage := store.NewGormStorage(db)
storage := store.NewGormStorage(
func() *gorm.DB {
return db
},
)
service := service.NewVersionService(storage, 5)
return db, service, storage
}