diff options
Diffstat (limited to 'internal/processing/interactionrequests')
-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) { |