mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 16:13:18 -06:00
test suites should also directly use the global logrus logger
This commit is contained in:
parent
7018ec27cd
commit
9ab16632de
31 changed files with 39 additions and 72 deletions
|
|
@ -51,7 +51,6 @@ type MediaCreateTestSuite struct {
|
|||
suite.Suite
|
||||
config *config.Config
|
||||
db db.DB
|
||||
log *logrus.Logger
|
||||
storage *kv.KVStore
|
||||
federator federation.Federator
|
||||
tc typeutils.TypeConverter
|
||||
|
|
@ -79,7 +78,7 @@ func (suite *MediaCreateTestSuite) SetupSuite() {
|
|||
// setup standard items
|
||||
suite.config = testrig.NewTestConfig()
|
||||
suite.db = testrig.NewTestDB()
|
||||
suite.log = testrig.NewTestLog()
|
||||
testrig.InitTestLog()
|
||||
suite.storage = testrig.NewTestStorage()
|
||||
suite.tc = testrig.NewTestTypeConverter(suite.db)
|
||||
suite.mediaHandler = testrig.NewTestMediaHandler(suite.db, suite.storage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue