mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-31 06:36:14 -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 streaming_test
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
|
|
@ -34,7 +33,6 @@ type StreamingTestSuite struct {
|
|||
testTokens map[string]*gtsmodel.Token
|
||||
db db.DB
|
||||
oauthServer oauth.Server
|
||||
log *logrus.Logger
|
||||
|
||||
streamingProcessor streaming.Processor
|
||||
}
|
||||
|
|
@ -44,7 +42,7 @@ func (suite *StreamingTestSuite) SetupTest() {
|
|||
suite.testTokens = testrig.NewTestTokens()
|
||||
suite.db = testrig.NewTestDB()
|
||||
suite.oauthServer = testrig.NewTestOauthServer(suite.db)
|
||||
suite.log = testrig.NewTestLog()
|
||||
testrig.InitTestLog()
|
||||
suite.streamingProcessor = streaming.New(suite.db, suite.oauthServer)
|
||||
|
||||
testrig.StandardDBSetup(suite.db, suite.testAccounts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue