correct order for publised in assert
This commit is contained in:
parent
e0944dee99
commit
ec27f346ee
1 changed files with 2 additions and 6 deletions
|
@ -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) == [
|
||||
|
|
Loading…
Reference in a new issue