From 6e7cbf1885359a028231ec31ca65633c02ac7ba0 Mon Sep 17 00:00:00 2001 From: Oneric Date: Sat, 10 Feb 2024 03:03:13 +0100 Subject: [PATCH] Test both standalone and flag mode for pruning orphaned activities --- test/mix/tasks/pleroma/database_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mix/tasks/pleroma/database_test.exs b/test/mix/tasks/pleroma/database_test.exs index f28bef51c..18b4752bf 100644 --- a/test/mix/tasks/pleroma/database_test.exs +++ b/test/mix/tasks/pleroma/database_test.exs @@ -470,7 +470,7 @@ test "it prunes orphaned activities with the --prune-orphaned-activities" do assert length(activities) == 4 end - test "it prunes orphaned activities with the --prune-orphaned-activities when the objects are referenced from an array" do + test "it prunes orphaned activities with prune_orphaned_activities when the objects are referenced from an array" do %Object{} |> Map.merge(%{data: %{"id" => "existing_object"}}) |> Repo.insert() %User{} |> Map.merge(%{ap_id: "existing_actor"}) |> Repo.insert() @@ -517,7 +517,7 @@ test "it prunes orphaned activities with the --prune-orphaned-activities when th assert length(Repo.all(Activity)) == 4 Mix.Tasks.Pleroma.Database.run(["prune_objects"]) assert length(Repo.all(Activity)) == 4 - Mix.Tasks.Pleroma.Database.run(["prune_objects", "--prune-orphaned-activities"]) + Mix.Tasks.Pleroma.Database.run(["prune_orphaned_activities"]) activities = Repo.all(Activity) assert length(activities) == 3