StreamerTest: Separate deletion test.
authorlain <lain@soykaf.club>
Thu, 30 Apr 2020 15:52:29 +0000 (17:52 +0200)
committerlain <lain@soykaf.club>
Thu, 30 Apr 2020 15:52:29 +0000 (17:52 +0200)
test/web/streamer/streamer_test.exs

index 8b8d8af6c51521dac9046715814c22d24fcc6731..3c0f240f54168daaa4e91e8567f0bdb00be04a13 100644 (file)
@@ -210,6 +210,12 @@ defmodule Pleroma.Web.StreamerTest do
     Worker.push_to_socket(topics, "public", activity)
 
     Task.await(task)
+  end
+
+  test "works for deletions" do
+    user = insert(:user)
+    other_user = insert(:user)
+    {:ok, activity} = CommonAPI.post(other_user, %{"status" => "Test"})
 
     task =
       Task.async(fn ->