summaryrefslogtreecommitdiff
path: root/testrig/mediahandler.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-10 18:36:09 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-10 18:36:09 +0100
commite0f9323b9aa98b55f3557086f7b0a17047943f39 (patch)
tree5a2bbcb84b87d2530e804067d72c1bea672412a1 /testrig/mediahandler.go
parentadd async test (diff)
downloadgotosocial-e0f9323b9aa98b55f3557086f7b0a17047943f39.tar.xz
test the media manager a bit, add shutdown logic
Diffstat (limited to 'testrig/mediahandler.go')
-rw-r--r--testrig/mediahandler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrig/mediahandler.go b/testrig/mediahandler.go
index 046ddc5be..38190eca3 100644
--- a/testrig/mediahandler.go
+++ b/testrig/mediahandler.go
@@ -26,7 +26,7 @@ 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 {
- m, err := media.New(db, storage)
+ m, err := media.NewManager(db, storage)
if err != nil {
panic(err)
}