From c375b011528f3e1f3159d3333b58c943dc14f140 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Sat, 16 Oct 2021 11:36:50 +0200 Subject: [PATCH] go fmt --- .../federation/federatingdb/reject_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/federation/federatingdb/reject_test.go b/internal/federation/federatingdb/reject_test.go index 172cfbea2..5e5f12a79 100644 --- a/internal/federation/federatingdb/reject_test.go +++ b/internal/federation/federatingdb/reject_test.go @@ -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) {