StreamerTest: Separate deletion test.

This commit is contained in:
lain 2020-04-30 17:52:29 +02:00
parent 14c6672193
commit 143353432a
1 changed files with 6 additions and 0 deletions

View File

@ -210,6 +210,12 @@ test "it sends to public" 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 ->