summaryrefslogtreecommitdiff
path: root/internal/media/media_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/media_test.go')
-rw-r--r--internal/media/media_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/media/media_test.go b/internal/media/media_test.go
index 0980bf295..f46f837da 100644
--- a/internal/media/media_test.go
+++ b/internal/media/media_test.go
@@ -19,6 +19,7 @@ package media_test
import (
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/gotosocial/internal/admin"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
@@ -53,6 +54,7 @@ func (suite *MediaStandardTestSuite) SetupTest() {
suite.db = testrig.NewTestDB(&suite.state)
suite.storage = testrig.NewInMemoryStorage()
suite.state.DB = suite.db
+ suite.state.AdminActions = admin.New(suite.state.DB, &suite.state.Workers)
suite.state.Storage = suite.storage
testrig.StandardStorageSetup(suite.storage, "../../testrig/media")