mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +00:00
083099a957
* reference logrus' global logger instead of passing and storing a logger reference everywhere * always directly use global logrus logger instead of referencing an instance * test suites should also directly use the global logrus logger * rename gin logging function to clarify that it's middleware * correct comments which erroneously referenced removed logger parameter * setting log level for tests now uses logrus' exported type instead of the string value, to guarantee error isn't possible
12 lines
337 B
Go
12 lines
337 B
Go
package testrig
|
|
|
|
import (
|
|
"github.com/superseriousbusiness/gotosocial/internal/db"
|
|
"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb"
|
|
)
|
|
|
|
// NewTestFederatingDB returns a federating DB with the underlying db
|
|
func NewTestFederatingDB(db db.DB) federatingdb.DB {
|
|
return federatingdb.New(db, NewTestConfig())
|
|
}
|