diff options
author | 2024-09-10 14:34:49 +0200 | |
---|---|---|
committer | 2024-09-10 12:34:49 +0000 | |
commit | 307d98e3862b6e867eea524b81d5428b03e6607c (patch) | |
tree | b990378c5452f5779b85bd0d769db77a78f93600 /internal/processing/interactionrequests/reject_test.go | |
parent | [chore] status dereferencing improvements (#3255) (diff) | |
download | gotosocial-307d98e3862b6e867eea524b81d5428b03e6607c.tar.xz |
[feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271)
* [feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin"
* update test
* move nil check back to `rejectStatusIRI`
Diffstat (limited to 'internal/processing/interactionrequests/reject_test.go')
-rw-r--r-- | internal/processing/interactionrequests/reject_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/processing/interactionrequests/reject_test.go b/internal/processing/interactionrequests/reject_test.go index f1f6aed72..6e4aac691 100644 --- a/internal/processing/interactionrequests/reject_test.go +++ b/internal/processing/interactionrequests/reject_test.go @@ -71,6 +71,16 @@ func (suite *RejectTestSuite) TestReject() { ) return status == nil && errors.Is(err, db.ErrNoEntries) }) + + // Wait for a copy of the status + // to be hurled into the sin bin. + testrig.WaitFor(func() bool { + sbStatus, err := state.DB.GetSinBinStatusByURI( + gtscontext.SetBarebones(ctx), + dbReq.InteractionURI, + ) + return err == nil && sbStatus != nil + }) } func TestRejectTestSuite(t *testing.T) { |