From 2dc9fc1626507bb54417fc4a1920b847cafb27a2 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 25 Aug 2021 15:34:33 +0200 Subject: 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 --- testrig/router.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testrig/router.go') 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) } -- cgit v1.2.3