diff options
Diffstat (limited to 'internal/processing/workers')
-rw-r--r-- | internal/processing/workers/fromfediapi_test.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/processing/workers/fromfediapi_test.go b/internal/processing/workers/fromfediapi_test.go index 446355628..60a9e785e 100644 --- a/internal/processing/workers/fromfediapi_test.go +++ b/internal/processing/workers/fromfediapi_test.go @@ -90,9 +90,17 @@ func (suite *FromFediAPITestSuite) TestProcessReplyMention() { replyingAccount := suite.testAccounts["remote_account_1"] // Set the replyingAccount's last fetched_at - // date to something recent so no refresh is attempted. + // date to something recent so no refresh is attempted, + // and ensure it isn't a suspended account. replyingAccount.FetchedAt = time.Now() - err := suite.state.DB.UpdateAccount(context.Background(), replyingAccount, "fetched_at") + replyingAccount.SuspendedAt = time.Time{} + replyingAccount.SuspensionOrigin = "" + err := suite.state.DB.UpdateAccount(context.Background(), + replyingAccount, + "fetched_at", + "suspended_at", + "suspension_origin", + ) suite.NoError(err) // Get replying statusable to use from remote test statuses. |