summaryrefslogtreecommitdiff
path: root/testrig/mediahandler.go
diff options
context:
space:
mode:
Diffstat (limited to 'testrig/mediahandler.go')
-rw-r--r--testrig/mediahandler.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/testrig/mediahandler.go b/testrig/mediahandler.go
index ba2148655..046ddc5be 100644
--- a/testrig/mediahandler.go
+++ b/testrig/mediahandler.go
@@ -26,5 +26,9 @@ import (
// NewTestMediaManager returns a media handler with the default test config, and the given db and storage.
func NewTestMediaManager(db db.DB, storage *kv.KVStore) media.Manager {
- return media.New(db, storage)
+ m, err := media.New(db, storage)
+ if err != nil {
+ panic(err)
+ }
+ return m
}