Unexpectedly received message {:text, "{\"event\":\"update\",\"payload\":\"{\\\"account\\\":{\\\"acct\\\":\\\"nick1391\\\",\\\"avatar\\\":\\\"http://localhost:4001/images/avi.png\\\",\\\"avatar_static\\\":\\\"http://localhost:4001/images/avi.png\\\",\\\"bot\\\":false,\\\"created_at\\\":\\\"2020-05-05T10:38:54.000Z\\\",\\\"display_name\\\":\\\"Test テスト User 1391\\\",\\\"emojis\\\":[],\\\"fields\\\":[],\\\"followers_count\\\":0,\\\"following_count\\\":0,\\\"header\\\":\\\"http://localhost:4001/images/banner.png\\\",\\\"header_static\\\":\\\"http://localhost:4001/images/banner.png\\\",\\\"id\\\":\\\"9ujYVu5dBzAVm66qcC\\\",\\\"locked\\\":false,\\\"note\\\":\\\"Tester Number 1391\\\",\\\"pleroma\\\":{\\\"background_image\\\":null,\\\"confirmation_pending\\\":false,\\\"hide_favorites\\\":true,\\\"hide_followers\\\":false,\\\"hide_followers_count\\\":false,\\\"hide_follows\\\":false,\\\"hide_follows_count\\\":false,\\\"is_admin\\\":false,\\\"is_moderator\\\":false,\\\"relationship\\\":{\\\"blocked_by\\\":false,\\\"blocking\\\":false,\\\"domain_blocking\\\":false,\\\"endorsed\\\":false,\\\"followed_by\\\":false,\\\"following\\\":false,\\\"id\\\":\\\"9ujYVu5dBzAVm66qcC\\\",\\\"muting\\\":false,\\\"muting_notifications\\\":false,\\\"requested\\\":false,\\\"showing_reblogs\\\":true,\\\"subscribing\\\":false},\\\"skip_thread_containment\\\":false,\\\"tags\\\":[]},\\\"source\\\":{\\\"fields\\\":[],\\\"note\\\":\\\"Tester Number 1391\\\",\\\"pleroma\\\":{\\\"actor_type\\\":\\\"Person\\\",\\\"discoverable\\\":false},\\\"sensitive\\\":false},\\\"statuses_count\\\":0,\\\"url\\\":\\\"http://localhost:4001/users/nick1391\\\",\\\"username\\\":\\\"nick1391\\\"},\\\"application\\\":{\\\"name\\\":\\\"Web\\\",\\\"website\\\":null},\\\"bookmarked\\\":false,\\\"card\\\":null,\\\"content\\\":\\\"hi <span class=\\\\\\\"h-card\\\\\\\"><a class=\\\\\\\"u-url mention\\\\\\\" data-user=\\\\\\\"9ujYVu4DHG2BhhRiPA\\\\\\\" href=\\\\\\\"http://localhost:4001/users/nick1390\\\\\\\" rel=\\\\\\\"ugc\\\\\\\">@<span>nick1390</span></a></span>\\\",\\\"created_at\\\":\\\"2020-05-05T10:38:54.000Z\\\",\\\"emojis\\\":[],\\\"favourited\\\":false,\\\"favourites_count\\\":0,\\\"id\\\":\\\"9ujYVuAatX8e1UQoLo\\\",\\\"in_reply_to_account_id\\\":null,\\\"in_reply_to_id\\\":null,\\\"language\\\":null,\\\"media_attachments\\\":[],\\\"mentions\\\":[{\\\"acct\\\":\\\"nick1390\\\",\\\"id\\\":\\\"9ujYVu4DHG2BhhRiPA\\\",\\\"url\\\":\\\"http://localhost:4001/users/nick1390\\\",\\\"username\\\":\\\"nick1390\\\"}],\\\"muted\\\":false,\\\"pinned\\\":false,\\\"pleroma\\\":{\\\"content\\\":{\\\"text/plain\\\":\\\"hi @nick1390\\\"},\\\"conversation_id\\\":1368,\\\"direct_conversation_id\\\":null,\\\"emoji_reactions\\\":[],\\\"expires_at\\\":null,\\\"in_reply_to_account_acct\\\":null,\\\"local\\\":true,\\\"spoiler_text\\\":{\\\"text/plain\\\":\\\"\\\"},\\\"thread_muted\\\":false},\\\"poll\\\":null,\\\"reblog\\\":null,\\\"reblogged\\\":false,\\\"reblogs_count\\\":0,\\\"replies_count\\\":0,\\\"sensitive\\\":false,\\\"spoiler_text\\\":\\\"\\\",\\\"tags\\\":[],\\\"uri\\\":\\\"http://localhost:4001/objects/a3ecf000-d418-4b42-89fa-87a82d26f98e\\\",\\\"url\\\":\\\"http://localhost:4001/notice/9ujYVuAatX8e1UQoLo\\\",\\\"visibility\\\":\\\"direct\\\"}\"}"} (which matched {:text, _})
(ex_unit) lib/ex_unit/assertions.ex:367: ExUnit.Assertions.assert/2
(elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: #Function<5.72589803/0 in Pleroma.Web.StreamerTest."test direct streams it doesn't send conversation update to the 'direct' stream when the last message in the conversation is deleted"/1>
1) test headers/2 send pleroma user agent (Pleroma.HTTP.RequestBuilderTest)
test/http/request_builder_test.exs:20
Assertion with == failed
code: assert RequestBuilder.headers(%Request{}, []) == %Request{headers: [{"user-agent", Pleroma.Application.user_agent()}]}
left: %Pleroma.HTTP.Request{
body: "",
headers: [],
method: :get,
opts: [],
query: [],
url: ""
}
right: %Pleroma.HTTP.Request{
body: "",
headers: [
{"user-agent",
"Pleroma 2.0.50-829-g7e9aaa0d-stable+test; http://localhost:4001 <admin@example.com>"}
],
method: :get,
opts: [],
query: [],
url: ""
}
stacktrace:
test/http/request_builder_test.exs:24: (test)