summaryrefslogtreecommitdiff
path: root/internal/db/bundb/interaction_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/interaction_test.go')
-rw-r--r--internal/db/bundb/interaction_test.go18
1 files changed, 3 insertions, 15 deletions
diff --git a/internal/db/bundb/interaction_test.go b/internal/db/bundb/interaction_test.go
index 37684f18c..1eb8154c1 100644
--- a/internal/db/bundb/interaction_test.go
+++ b/internal/db/bundb/interaction_test.go
@@ -59,11 +59,7 @@ func (suite *InteractionTestSuite) markInteractionsPending(
// Put an interaction request
// in the DB for this reply.
- req, err := typeutils.StatusToInteractionRequest(ctx, reply)
- if err != nil {
- suite.FailNow(err.Error())
- }
-
+ req := typeutils.StatusToInteractionRequest(reply)
if err := suite.state.DB.PutInteractionRequest(ctx, req); err != nil {
suite.FailNow(err.Error())
}
@@ -90,11 +86,7 @@ func (suite *InteractionTestSuite) markInteractionsPending(
// Put an interaction request
// in the DB for this boost.
- req, err := typeutils.StatusToInteractionRequest(ctx, boost)
- if err != nil {
- suite.FailNow(err.Error())
- }
-
+ req := typeutils.StatusToInteractionRequest(boost)
if err := suite.state.DB.PutInteractionRequest(ctx, req); err != nil {
suite.FailNow(err.Error())
}
@@ -121,11 +113,7 @@ func (suite *InteractionTestSuite) markInteractionsPending(
// Put an interaction request
// in the DB for this fave.
- req, err := typeutils.StatusFaveToInteractionRequest(ctx, fave)
- if err != nil {
- suite.FailNow(err.Error())
- }
-
+ req := typeutils.StatusFaveToInteractionRequest(fave)
if err := suite.state.DB.PutInteractionRequest(ctx, req); err != nil {
suite.FailNow(err.Error())
}