summaryrefslogtreecommitdiff
path: root/internal/processing/followrequest_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/followrequest_test.go')
-rw-r--r--internal/processing/followrequest_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/processing/followrequest_test.go b/internal/processing/followrequest_test.go
index ca77d1e34..d5b7fdad2 100644
--- a/internal/processing/followrequest_test.go
+++ b/internal/processing/followrequest_test.go
@@ -18,7 +18,6 @@
package processing_test
import (
- "context"
"encoding/json"
"fmt"
"io"
@@ -53,11 +52,11 @@ func (suite *FollowRequestTestSuite) TestFollowRequestAccept() {
TargetAccountID: requestingAccount.ID,
}
- err := suite.db.Put(context.Background(), fr)
+ err := suite.db.Put(suite.T().Context(), fr)
suite.NoError(err)
relationship, errWithCode := suite.processor.Account().FollowRequestAccept(
- context.Background(),
+ suite.T().Context(),
requestingAccount,
targetAccount.ID,
)
@@ -139,11 +138,11 @@ func (suite *FollowRequestTestSuite) TestFollowRequestReject() {
TargetAccountID: requestingAccount.ID,
}
- err := suite.db.Put(context.Background(), fr)
+ err := suite.db.Put(suite.T().Context(), fr)
suite.NoError(err)
relationship, errWithCode := suite.processor.Account().FollowRequestReject(
- context.Background(),
+ suite.T().Context(),
requestingAccount,
targetAccount.ID,
)