summaryrefslogtreecommitdiff
path: root/player-server/internal/api/handlers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'player-server/internal/api/handlers_test.go')
-rw-r--r--player-server/internal/api/handlers_test.go22
1 files changed, 13 insertions, 9 deletions
diff --git a/player-server/internal/api/handlers_test.go b/player-server/internal/api/handlers_test.go
index 4f04f98..96c4552 100644
--- a/player-server/internal/api/handlers_test.go
+++ b/player-server/internal/api/handlers_test.go
@@ -81,16 +81,20 @@ func newTestServer(t *testing.T, store repository.Store, hasher auth.Hasher, sm
Hasher: hasher,
SessionManager: sm,
Config: cfg,
+ // Use the nested MediaServices group so tests wire all media-domain
+ // services in one block, mirroring the production ServerServices layout.
Services: ServerServices{
- Browse: browseSvc,
- Write: writeSvc,
- Share: shareSvc,
- Tag: tagSvc,
- Favorite: favSvc,
- Note: noteSvc,
- Admin: adminSvc,
- Progress: progressSvc,
- Auth: authSvc,
+ Media: MediaServices{
+ Browse: browseSvc,
+ Write: writeSvc,
+ Share: shareSvc,
+ Tag: tagSvc,
+ Favorite: favSvc,
+ Note: noteSvc,
+ Progress: progressSvc,
+ },
+ Admin: adminSvc,
+ Auth: authSvc,
},
StaticFS: fs,
MediaStreamer: mediaStreamer,