mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 12:42:24 -05:00
clean up some weirdness in the router (#80)
This commit is contained in:
parent
3568579218
commit
c71e55ecc4
11 changed files with 336 additions and 85 deletions
|
|
@ -18,11 +18,14 @@
|
|||
|
||||
package testrig
|
||||
|
||||
import "github.com/superseriousbusiness/gotosocial/internal/router"
|
||||
import (
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/router"
|
||||
)
|
||||
|
||||
// NewTestRouter returns a Router suitable for testing
|
||||
func NewTestRouter() router.Router {
|
||||
r, err := router.New(NewTestConfig(), NewTestLog())
|
||||
func NewTestRouter(db db.DB) router.Router {
|
||||
r, err := router.New(NewTestConfig(), db, NewTestLog())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue