1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.ActivityExpirationWorkerTest do
10 test "deletes an activity" do
11 activity = insert(:note_activity)
12 expiration = insert(:expiration_in_the_past, %{activity_id: activity.id})
13 Pleroma.Daemons.ActivityExpirationDaemon.perform(:execute, expiration.id)
15 refute Repo.get(Activity, activity.id)