From 63f84da3e45d4e1cace427c6d30f19ba7e621618 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 29 Apr 2022 15:05:13 +0200 Subject: [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 --- internal/api/client/status/statusboost_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/api/client/status/statusboost_test.go') 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, >smodel.Follow{}) + suite.NoError(err) + t := suite.testTokens["local_account_2"] oauthToken := oauth.DBTokenToToken(t) -- cgit v1.2.3