summaryrefslogtreecommitdiff
path: root/internal/api/client/status/statusboost_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-04-29 15:05:13 +0200
committerLibravatar GitHub <noreply@github.com>2022-04-29 15:05:13 +0200
commit63f84da3e45d4e1cace427c6d30f19ba7e621618 (patch)
treec99679350b1b3ed64451f894fd485cc3dc9c8b0a /internal/api/client/status/statusboost_test.go
parent[feature] allow absolute path to templates (#507) (diff)
downloadgotosocial-63f84da3e45d4e1cace427c6d30f19ba7e621618.tar.xz
[chore] Inboxes for iri test (#508)
* tidy up some federation tests * add missing license to following.go * give zork some followers, as a treat * test InboxesForIRI * Go fmt * update timeline tests
Diffstat (limited to 'internal/api/client/status/statusboost_test.go')
-rw-r--r--internal/api/client/status/statusboost_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/client/status/statusboost_test.go b/internal/api/client/status/statusboost_test.go
index 103c201ec..42693d9e0 100644
--- a/internal/api/client/status/statusboost_test.go
+++ b/internal/api/client/status/statusboost_test.go
@@ -16,6 +16,7 @@
package status_test
import (
+ "context"
"encoding/json"
"fmt"
"io/ioutil"
@@ -29,6 +30,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/api/client/status"
"github.com/superseriousbusiness/gotosocial/internal/api/model"
+ "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/oauth"
)
@@ -144,6 +146,10 @@ func (suite *StatusBoostTestSuite) TestPostUnboostable() {
// try to boost a status that's not visible to the user
func (suite *StatusBoostTestSuite) TestPostNotVisible() {
+ // stop local_account_2 following zork
+ err := suite.db.DeleteByID(context.Background(), suite.testFollows["local_account_2_local_account_1"].ID, &gtsmodel.Follow{})
+ suite.NoError(err)
+
t := suite.testTokens["local_account_2"]
oauthToken := oauth.DBTokenToToken(t)