Add test ensuring text and content type are returned when deleting a status

This commit is contained in:
ewin 2025-03-05 17:27:28 -05:00
commit b2270e3092
No known key found for this signature in database

View file

@ -77,6 +77,10 @@ func (suite *StatusDeleteTestSuite) TestPostDelete() {
suite.NoError(err)
suite.NotNil(statusReply)
// Check that text and content type are returned for delete and redraft
suite.Equal("hello everyone!", statusReply.Text)
suite.Equal("text/plain", statusReply.ContentType)
if !testrig.WaitFor(func() bool {
_, err := suite.db.GetStatusByID(ctx, targetStatus.ID)
return errors.Is(err, db.ErrNoEntries)