fix test
authorMaksim Pechnikov <parallel588@gmail.com>
Thu, 9 Jul 2020 04:16:52 +0000 (07:16 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Thu, 9 Jul 2020 04:16:52 +0000 (07:16 +0300)
test/tasks/user_test.exs

index c962819db6f56128e8ff132f812e36a6c91aa5a8..2a3e62e26bdc760cbd9d7276fe0000c9fafe13b4 100644 (file)
@@ -124,16 +124,9 @@ defmodule Mix.Tasks.Pleroma.UserTest do
           Keyword.put(meta, :local, true)
         )
 
-      like_obj = Pleroma.Object.get_by_ap_id(like_activity.data["object"])
-
-      data =
-        Map.merge(like_activity.data, %{"object" => "tag:gnusocial.cc,2019-01-09:noticeId=210716"})
-
-      like_activity
-      |> Ecto.Changeset.change(data: data)
-      |> Repo.update()
-
-      Repo.delete(like_obj)
+      like_activity.data["object"]
+      |> Pleroma.Object.get_by_ap_id()
+      |> Repo.delete()
 
       clear_config([:instance, :federating], true)