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 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
end end
test "gets a feed (RSS)", %{conn: conn} do test "gets a feed (RSS)", %{conn: conn} do
%{microsecond: {micro, _}} = DateTime.utc_now()
micro = (micro / 1000) |> floor()
Process.sleep(950 - micro)
Pleroma.Config.put( Pleroma.Config.put(
[:feed, :post_title], [:feed, :post_title],
%{max_length: 25, omission: "..."} %{max_length: 25, omission: "..."}
@ -142,8 +138,8 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
] ]
assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [ 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) == [ assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [