summaryrefslogtreecommitdiff
path: root/internal/api/client/followrequest/followrequest_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/followrequest/followrequest_test.go')
-rw-r--r--internal/api/client/followrequest/followrequest_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/followrequest/followrequest_test.go b/internal/api/client/followrequest/followrequest_test.go
index e98d75c77..f9a14d261 100644
--- a/internal/api/client/followrequest/followrequest_test.go
+++ b/internal/api/client/followrequest/followrequest_test.go
@@ -96,7 +96,7 @@ func (suite *FollowRequestStandardTestSuite) TearDownTest() {
}
func (suite *FollowRequestStandardTestSuite) newContext(recorder *httptest.ResponseRecorder, requestMethod string, requestBody []byte, requestPath string, bodyContentType string) *gin.Context {
- ctx, _ := gin.CreateTestContext(recorder)
+ ctx, _ := testrig.CreateGinTestContext(recorder, nil)
ctx.Set(oauth.SessionAuthorizedAccount, suite.testAccounts["local_account_1"])
ctx.Set(oauth.SessionAuthorizedToken, oauth.DBTokenToToken(suite.testTokens["local_account_1"]))