diff options
Diffstat (limited to 'internal/db/bundb/relationship_test.go')
| -rw-r--r-- | internal/db/bundb/relationship_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/bundb/relationship_test.go b/internal/db/bundb/relationship_test.go index a8b456286..c1336aa50 100644 --- a/internal/db/bundb/relationship_test.go +++ b/internal/db/bundb/relationship_test.go @@ -194,7 +194,7 @@ func (suite *RelationshipTestSuite) TestGetFollowBy() { // Attempt to place the follow in database (if not already). if err := suite.db.PutFollow(ctx, follow); err != nil { - if err != db.ErrAlreadyExists { + if !errors.Is(err, db.ErrAlreadyExists) { // Unrecoverable database error. t.Fatalf("error creating follow: %v", err) } @@ -306,7 +306,7 @@ func (suite *RelationshipTestSuite) TestGetFollowRequestBy() { // Attempt to place the follow in database (if not already). if err := suite.db.PutFollowRequest(ctx, followReq); err != nil { - if err != db.ErrAlreadyExists { + if !errors.Is(err, db.ErrAlreadyExists) { // Unrecoverable database error. t.Fatalf("error creating follow request: %v", err) } |
