mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
Pg to bun (#148)
* start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes
This commit is contained in:
@@ -19,13 +19,15 @@
|
||||
package testrig
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/router"
|
||||
)
|
||||
|
||||
// NewTestRouter returns a Router suitable for testing
|
||||
func NewTestRouter(db db.DB) router.Router {
|
||||
r, err := router.New(NewTestConfig(), db, NewTestLog())
|
||||
r, err := router.New(context.Background(), NewTestConfig(), db, NewTestLog())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user