Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8613712
activity_expiration_daemon_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
563 B
Referenced Files
None
Subscribers
None
activity_expiration_daemon_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.ActivityExpirationWorkerTest
do
use
Pleroma.DataCase
alias
Pleroma.Activity
import
Pleroma.Factory
test
"deletes an activity"
do
activity
=
insert
(
:note_activity
)
expiration
=
insert
(
:expiration_in_the_past
,
%{
activity_id
:
activity
.
id
})
Pleroma.Daemons.ActivityExpirationDaemon
.
perform
(
:execute
,
expiration
.
id
)
refute
Repo
.
get
(
Activity
,
activity
.
id
)
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 25, 6:30 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547650
Default Alt Text
activity_expiration_daemon_test.exs (563 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment