Sporadically failing tests
1) test put_file/1 returns error (Pleroma.Uploaders.S3Test)
test/uploaders/s3_test.exs:73
** (MatchError) no match of right hand side value: {:error, :enoent}
code: assert capture_log(fn ->
stacktrace:
(pleroma) lib/pleroma/uploaders/s3.ex:56: Pleroma.Uploaders.S3.put_file/1
test/uploaders/s3_test.exs:76: anonymous fn/1 in Pleroma.Uploaders.S3Test."test put_file/1 returns error"/1
(ex_unit) lib/ex_unit/capture_log.ex:78: ExUnit.CaptureLog.capture_log/2
test/uploaders/s3_test.exs:75: (test)
....
2) test put_file/1 save file (Pleroma.Uploaders.S3Test)
test/uploaders/s3_test.exs:67
** (MatchError) no match of right hand side value: {:error, :enoent}
code: assert S3.put_file(file_upload) == {:ok, {:file, "test_folder/image-tet.jpg"}}
stacktrace:
(pleroma) lib/pleroma/uploaders/s3.ex:56: Pleroma.Uploaders.S3.put_file/1
test/uploaders/s3_test.exs:69: (test)
1) test gets a feed (RSS) (Pleroma.Web.Feed.TagControllerTest)
test/web/feed/tag_controller_test.exs:84
Assertion with == failed
code: assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [FeedView.pub_date(activity1.data()["published"]), FeedView.pub_date(activity2.data()["published"])]
left: ["Mon, 04 May 20 09:56:45 +0000", "Mon, 04 May 20 09:56:44 +0000"]
right: ["Mon, 04 May 20 09:56:44 +0000", "Mon, 04 May 20 09:56:45 +0000"]
stacktrace:
test/web/feed/tag_controller_test.exs:140: (test)
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)
Edited by lain