summaryrefslogtreecommitdiff
path: root/internal/db/bundb/media_test.go
diff options
context:
space:
mode:
authorLibravatar Sashanoraa <sasha@noraa.gay>2022-05-15 08:52:46 -0400
committerLibravatar GitHub <noreply@github.com>2022-05-15 14:52:46 +0200
commit6e947ff2662d0b9fc475c5b21e9f1cfb0bb308a0 (patch)
tree9138d4e7a988e883b7734431034c055776f255f6 /internal/db/bundb/media_test.go
parent[documentation] Nlnet application (#572) (diff)
downloadgotosocial-6e947ff2662d0b9fc475c5b21e9f1cfb0bb308a0.tar.xz
[feature] Media cleanup endpoint (#560)
Adds an admin endpoint to trigger a remote media cleanup. Fixed #348 Signed-off-by: Sashanoraa <sasha@noraa.gay>
Diffstat (limited to 'internal/db/bundb/media_test.go')
-rw-r--r--internal/db/bundb/media_test.go2
1 files changed, 1 insertions, 1 deletions
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) {