mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:26:16 -06:00
go fmt
This commit is contained in:
parent
515c29d7e2
commit
c375b01152
1 changed files with 9 additions and 9 deletions
|
|
@ -36,9 +36,9 @@ type RejectTestSuite struct {
|
|||
}
|
||||
|
||||
func (suite *RejectTestSuite) TestRejectFollowRequest() {
|
||||
// local_account_1 sent a follow request to remote_account_2;
|
||||
// remote_account_2 rejects the follow request
|
||||
followingAccount := suite.testAccounts["local_account_1"]
|
||||
// local_account_1 sent a follow request to remote_account_2;
|
||||
// remote_account_2 rejects the follow request
|
||||
followingAccount := suite.testAccounts["local_account_1"]
|
||||
followedAccount := suite.testAccounts["remote_account_2"]
|
||||
fromFederatorChan := make(chan messages.FromFederator, 10)
|
||||
ctx := createTestContext(followingAccount, followedAccount, fromFederatorChan)
|
||||
|
|
@ -79,16 +79,16 @@ func (suite *RejectTestSuite) TestRejectFollowRequest() {
|
|||
acceptTo.AppendIRI(requestingAccountURI)
|
||||
reject.SetActivityStreamsTo(acceptTo)
|
||||
|
||||
// process the reject in the federating database
|
||||
// process the reject in the federating database
|
||||
err = suite.federatingDB.Reject(ctx, reject)
|
||||
suite.NoError(err)
|
||||
|
||||
// there should be nothing in the federator channel since nothing needs to be passed
|
||||
suite.Empty(fromFederatorChan)
|
||||
// there should be nothing in the federator channel since nothing needs to be passed
|
||||
suite.Empty(fromFederatorChan)
|
||||
|
||||
// the follow request should not be in the database anymore -- it's been rejected
|
||||
err = suite.db.GetByID(ctx, fr.ID, >smodel.FollowRequest{})
|
||||
suite.ErrorIs(err, db.ErrNoEntries)
|
||||
// the follow request should not be in the database anymore -- it's been rejected
|
||||
err = suite.db.GetByID(ctx, fr.ID, >smodel.FollowRequest{})
|
||||
suite.ErrorIs(err, db.ErrNoEntries)
|
||||
}
|
||||
|
||||
func TestRejectTestSuite(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue