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