From 6e947ff2662d0b9fc475c5b21e9f1cfb0bb308a0 Mon Sep 17 00:00:00 2001 From: Sashanoraa Date: Sun, 15 May 2022 08:52:46 -0400 Subject: [feature] Media cleanup endpoint (#560) Adds an admin endpoint to trigger a remote media cleanup. Fixed #348 Signed-off-by: Sashanoraa --- internal/db/bundb/media_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/bundb/media_test.go') diff --git a/internal/db/bundb/media_test.go b/internal/db/bundb/media_test.go index 1d0b86275..3138caf3b 100644 --- a/internal/db/bundb/media_test.go +++ b/internal/db/bundb/media_test.go @@ -40,7 +40,7 @@ func (suite *MediaTestSuite) TestGetAttachmentByID() { func (suite *MediaTestSuite) TestGetOlder() { attachments, err := suite.db.GetRemoteOlderThan(context.Background(), time.Now(), 20) suite.NoError(err) - suite.Len(attachments, 1) + suite.Len(attachments, 2) } func TestMediaTestSuite(t *testing.T) { -- cgit v1.2.3