summaryrefslogtreecommitdiff
path: root/internal/api/client/account/follow_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/account/follow_test.go')
-rw-r--r--internal/api/client/account/follow_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/api/client/account/follow_test.go b/internal/api/client/account/follow_test.go
index 478330c83..fad67b185 100644
--- a/internal/api/client/account/follow_test.go
+++ b/internal/api/client/account/follow_test.go
@@ -31,6 +31,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/api/client/account"
"github.com/superseriousbusiness/gotosocial/internal/oauth"
+ "github.com/superseriousbusiness/gotosocial/testrig"
)
type FollowTestSuite struct {
@@ -40,7 +41,7 @@ type FollowTestSuite struct {
func (suite *FollowTestSuite) TestFollowSelf() {
testAcct := suite.testAccounts["local_account_1"]
recorder := httptest.NewRecorder()
- ctx, _ := gin.CreateTestContext(recorder)
+ ctx, _ := testrig.CreateGinTestContext(recorder, nil)
ctx.Set(oauth.SessionAuthorizedAccount, testAcct)
ctx.Set(oauth.SessionAuthorizedToken, oauth.DBTokenToToken(suite.testTokens["local_account_1"]))
ctx.Set(oauth.SessionAuthorizedApplication, suite.testApplications["application_1"])