summaryrefslogtreecommitdiff
path: root/testrig/router.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-25 15:34:33 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-25 15:34:33 +0200
commit2dc9fc1626507bb54417fc4a1920b847cafb27a2 (patch)
tree4ddeac479b923db38090aac8bd9209f3646851c1 /testrig/router.go
parentManually approves followers (#146) (diff)
downloadgotosocial-2dc9fc1626507bb54417fc4a1920b847cafb27a2.tar.xz
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
Diffstat (limited to 'testrig/router.go')
-rw-r--r--testrig/router.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/testrig/router.go b/testrig/router.go
index 5770191ea..a3c119468 100644
--- a/testrig/router.go
+++ b/testrig/router.go
@@ -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)
}