mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-01 15:43:16 -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
|
|
@ -19,7 +19,6 @@
|
|||
package status_test
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
|
|
@ -34,7 +33,6 @@ type StatusStandardTestSuite struct {
|
|||
suite.Suite
|
||||
config *config.Config
|
||||
db db.DB
|
||||
log *logrus.Logger
|
||||
typeConverter typeutils.TypeConverter
|
||||
fromClientAPIChan chan messages.FromClientAPI
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ func (suite *UtilTestSuite) SetupSuite() {
|
|||
func (suite *UtilTestSuite) SetupTest() {
|
||||
suite.config = testrig.NewTestConfig()
|
||||
suite.db = testrig.NewTestDB()
|
||||
suite.log = testrig.NewTestLog()
|
||||
testrig.InitTestLog()
|
||||
suite.typeConverter = testrig.NewTestTypeConverter(suite.db)
|
||||
suite.fromClientAPIChan = make(chan messages.FromClientAPI, 100)
|
||||
suite.status = status.New(suite.db, suite.typeConverter, suite.config, suite.fromClientAPIChan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue