diff options
author | href <href@random.sh> | 2018-12-17 17:09:06 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-12-17 17:09:06 +0100 |
commit | b12a90491156f1b31defd7aa1b322a86867dbf2b (patch) | |
tree | 6495d0dba9f71cb3a8956368cbfa88e44b9a352d /test/web/mastodon_api | |
parent | 77b5154c825e2ff5996f170c03657eaadcef4680 (diff) | |
download | pleroma-b12a90491156f1b31defd7aa1b322a86867dbf2b.tar.gz pleroma-b12a90491156f1b31defd7aa1b322a86867dbf2b.zip |
Integration tests for mastodon websocket
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/mastodon_socket_test.exs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/web/mastodon_api/mastodon_socket_test.exs b/test/web/mastodon_api/mastodon_socket_test.exs deleted file mode 100644 index 5d9b96861..000000000 --- a/test/web/mastodon_api/mastodon_socket_test.exs +++ /dev/null @@ -1,31 +0,0 @@ -defmodule Pleroma.Web.MastodonApi.MastodonSocketTest do - use Pleroma.DataCase - - alias Pleroma.Web.{Streamer, CommonAPI} - - import Pleroma.Factory - - test "public is working when non-authenticated" do - user = insert(:user) - - task = - Task.async(fn -> - assert_receive {:text, _}, 4_000 - end) - - fake_socket = %{ - transport_pid: task.pid, - assigns: %{} - } - - topics = %{ - "public" => [fake_socket] - } - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Test"}) - - Streamer.push_to_socket(topics, "public", activity) - - Task.await(task) - end -end |