1 defmodule Pleroma.Web.MastodonApi.MastodonSocketTest do
4 alias Pleroma.Web.{Streamer, CommonAPI}
8 test "public is working when non-authenticated" do
13 assert_receive {:text, _}, 4_000
17 transport_pid: task.pid,
22 "public" => [fake_socket]
25 {:ok, activity} = CommonAPI.post(user, %{"status" => "Test"})
27 Streamer.push_to_socket(topics, "public", activity)