summaryrefslogtreecommitdiff
path: root/testrig/oauthserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'testrig/oauthserver.go')
-rw-r--r--testrig/oauthserver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/testrig/oauthserver.go b/testrig/oauthserver.go
index 49615cadc..7ed230c49 100644
--- a/testrig/oauthserver.go
+++ b/testrig/oauthserver.go
@@ -19,11 +19,13 @@
package testrig
import (
+ "context"
+
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/oauth"
)
// NewTestOauthServer returns an oauth server with the given db, and the default test logger.
func NewTestOauthServer(db db.DB) oauth.Server {
- return oauth.New(db, NewTestLog())
+ return oauth.New(context.Background(), db, NewTestLog())
}