mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 04:43:17 -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
|
|
@ -48,7 +48,6 @@ type ServeFileTestSuite struct {
|
|||
suite.Suite
|
||||
config *config.Config
|
||||
db db.DB
|
||||
log *logrus.Logger
|
||||
storage *kv.KVStore
|
||||
federator federation.Federator
|
||||
tc typeutils.TypeConverter
|
||||
|
|
@ -76,7 +75,7 @@ func (suite *ServeFileTestSuite) SetupSuite() {
|
|||
// setup standard items
|
||||
suite.config = testrig.NewTestConfig()
|
||||
suite.db = testrig.NewTestDB()
|
||||
suite.log = testrig.NewTestLog()
|
||||
testrig.InitTestLog()
|
||||
suite.storage = testrig.NewTestStorage()
|
||||
suite.federator = testrig.NewTestFederator(suite.db, testrig.NewTestTransportController(testrig.NewMockHTTPClient(nil), suite.db), suite.storage)
|
||||
suite.processor = testrig.NewTestProcessor(suite.db, suite.storage, suite.federator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue