correct order for publised in assert

This commit is contained in:
Alexander Strizhakov 2020-05-12 12:12:10 +03:00
parent e0944dee99
commit ec27f346ee
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -82,10 +82,6 @@ test "gets a feed (ATOM)", %{conn: conn} do
end
test "gets a feed (RSS)", %{conn: conn} do
%{microsecond: {micro, _}} = DateTime.utc_now()
micro = (micro / 1000) |> floor()
Process.sleep(950 - micro)
Pleroma.Config.put(
[:feed, :post_title],
%{max_length: 25, omission: "..."}
@ -142,8 +138,8 @@ test "gets a feed (RSS)", %{conn: conn} do
]
assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [
FeedView.pub_date(activity1.data["published"]),
FeedView.pub_date(activity2.data["published"])
FeedView.pub_date(activity2.data["published"]),
FeedView.pub_date(activity1.data["published"])
]
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [